Top "Mongodb-query" questions

This tag is for questions related to querying and updating MongoDB collections, either through the mongo shell or using a programming language driver.

$project in $lookup mongodb

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 lookup
How to update value of a key in a list of a json in Mongo

I have a document--- Employees:[ { name:"abc", contact:"123", email:"[email protected]" }, { name:"efg", contact:"456", email:"[email protected]" }, { name:"…

mongodb mongodb-query mongo-java
MongoDB: does document size affect query performance?

Assume a mobile game that is backed by a MongoDB database containing a User collection with several million documents. Now …

mongodb mongodb-query
Map an 'array of objects' to a simple array of key values

I am new to the mongoDB aggregation pipeline and have a really basic question but could not find the answer …

arrays mongodb mongodb-query aggregation-framework
MongoDB query for document older than 30 seconds

Does 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 mongojs
Data type conversion in MongoDB

I have a collection called Document in MongoDB. Documents in this collection have a field called CreationDate stored in ISO …

mongodb mongodb-query aggregation-framework
Mongo DB query in java

I have to write a complex mongo query using java but am not able to do it. The mongo query …

mongodb mongodb-java mongodb-query
MongoDB: how to find documents ignoring case sensitive, accents and percent like logic (%)

I 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 querying
How can I print document in cursor.ForEach?

I'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