This tag is for questions related to querying and updating MongoDB collections, either through the mongo shell or using a programming language driver.
db.movieDetails.find( { year: 2013, imdb.rating: Pg-13, award.wins: 0 }, { title: 1, _id: 0 } ).pretty(); The mongo shell returns this error 2016-08-13…
mongodb mongodb-query mongo-shellI have a deeply nested collection in my MongoDB collection. When I run the following query: db.countries.findOne({},{'data.…
mongodb mongodb-query flattenIs it possible to rename the name of fields returned in a find query? I would like to use something …
mongodb mongodb-query aggregation-frameworkHow can I query a specific month in mongodb, not date range, I need month to make a list of …
mongodb mongodb-query mongodb-phpI am newer in MongoDB with CakePHP. When I write the following query it will execute very well. db.testData.…
mongodb mongodb-queryI am creating index in mongodb having 10 million records but following error db.logcollection.ensureIndex({"Module":1}) { "createdCollectionAutomatically" : false, "numIndexesBefore" : 3, "ok" : 0, "…
mongodb mongodb-queryWhen using a FindOne() using MongoDB and C#, is there a way to ignore fields not found in the object? …
c# .net mongodb mongodb-query mongodb-.net-driverMongoDB bulk operations have two options: Bulk.find.updateOne() Adds a single document update operation to a bulk operations list. …
mongodb mongodb-query crudI have some documents like this: { "user": '1' }, { "user": '1' }, { "user": '2' }, { "user": '3' } I'd like …
mongodb mongodb-queryI am new to mongodb and trying out aggregation for first time. Here, I am trying to get the count …
mongodb mongodb-query aggregation-framework