This tag is for questions related to querying and updating MongoDB collections, either through the mongo shell or using a programming language driver.
I have a query, that use $lookup to "join" two models, after this i use $project to select olny the …
mongodb mongoose mongodb-query aggregation-framework lookupI have a document--- Employees:[ { name:"abc", contact:"123", email:"[email protected]" }, { name:"efg", contact:"456", email:"[email protected]" }, { name:"…
mongodb mongodb-query mongo-javaAssume a mobile game that is backed by a MongoDB database containing a User collection with several million documents. Now …
mongodb mongodb-queryI am new to the mongoDB aggregation pipeline and have a really basic question but could not find the answer …
arrays mongodb mongodb-query aggregation-frameworkDoes anyone have a good approach for a query against a collection for documents that are older than 30 seconds. I'm …
javascript mongodb mongodb-query mongojsI have been able to connect to my Mongo instance (which is hosted in the cloud at Compose.io -- …
mongodb mongodb-query user-rolesI have a collection called Document in MongoDB. Documents in this collection have a field called CreationDate stored in ISO …
mongodb mongodb-query aggregation-frameworkI have to write a complex mongo query using java but am not able to do it. The mongo query …
mongodb mongodb-java mongodb-queryI would like to make a search on a collection in my mongodb database. In my collection, I have documents …
mongodb mongoose mongodb-query case-insensitive queryingI've defined some simple cursor as find() on some collection. cursor = db.students.find() Student has following schema: "_id" : 19, "name" : "…
mongodb mongodb-query mongo-shell