Questions tagged as 'mongodb'

1
answer

Foreign key in MongoDB

I have the users collection and the shopping The ratio is 1 user for N purchases where each purchase is a document. What I intended was, when doing a findOne in the users table, it would automatically include purchases, the result wou...
asked by 04.10.2014 / 21:17
1
answer

Doubt DBRef Mongodb

I have two collections in mongodb called companies and users: ********** Coleção Empresas ********** { "_id": ObjectId("54f38340448d3f436993edf6"), "cnpj": "12345678900000", "razao": "EMPRESA TESTE", "status...
asked by 01.03.2015 / 22:39
1
answer

How to filter an array inside a collection in MONGODB - C #

I have the collection PESSOA with a list of Languages as below: { "_id" : ObjectId("576be476ab76191bec2ff38c"), "Nome" : "Nome um", "Idiomas" : [ {...
asked by 23.06.2016 / 17:40
4
answers

In what kind of application can I use MongoDB?

Using MongoDB in every type of application is bad, if there are types that are most recommended and types where it is not recommended to use a NoSQL.     
asked by 05.02.2018 / 14:05
2
answers

Where to store information?

I have an angled, basic application with forms that stores the data in arrays and receives the dado in dados in div's . Now how can I store this data? What options do I have when using AngularJS ? Being familiar with php and...
asked by 30.09.2016 / 11:54
1
answer

Doubt or $ group mongodb

I need to use the $group grouping operator of mongodb, however every explanation I encounter is too confusing. How does this work and what is the benefit of using this operator?     
asked by 19.02.2015 / 17:04
2
answers

Error 'Class' MongoClient' not found "[closed]

I recently installed MongoDB on my Macbook, I installed the extension in native PHP, which I'm using along with native apache. The problem is this, if I run the Web page in Apache I get the following message: Fatal error: Class 'MongoClient' n...
asked by 03.01.2016 / 05:14
2
answers

How to do a "JOIN" in two collections in MongoDB?

I know that mongo has no inner join, But I need to filter the data of a collection by reference to its _id in another collection. I need to display only the projects of a given user. Out of the question restructure the base. Collecti...
asked by 26.08.2014 / 20:36
1
answer

How to change a record in Mongo through a function and update node?

I have a problem. I have a data set inside Mongo, a json that was returned from a request from url pa/ with app.get('/pa', function (req, res) { paController.list(function(resp) { res.jsonp(resp); }); }); similar to t...
asked by 04.08.2016 / 22:13
1
answer

Field "__v" in all documents in a collection

All my documents in a MongoDB database have a __v field, what does it mean? > db.speeds.find({}).limit(2).pretty() { "_id" : ObjectId("586826f700890738a5e8cb3d"), "remoteId" : 1, "first" : ObjectId("586826f700890738a5e8cb...
asked by 31.12.2016 / 23:03