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 "status" collection like this strcture - { _id: ObjectId("545a0b63b03dbcd1238b4567"), status: 1004, comment: "Rem dolor …
mongodb mongodb-query aggregation-frameworkI have a collection of documents: date: Date users: [ { user: 1, group: 1 } { user: 5, group: 2 } ] date: Date users: [ { user: 1, group: 1 } { user: 3, group: 2 } ] …
mongodb mapreduce mongodb-query aggregation-frameworkIs there any option to perform bulk upserts with mongoose? So basically having an array and insert each element if …
javascript node.js mongodb mongoose mongodb-queryIn mongoDB compass I am getting no result with the below filters. Not sure what I am doing wrong. {user: {…
mongodb mongodb-query mongodb-compassRecently I notice a huge performance difference between doing multiple upserts (via bulk operations) vs an insert (multiple documents). I …
mongodb mongodb-query upsertHow do I concatenate values from two string fields and put it into a third one? I've tried this: db.…
mongodb mongodb-query aggregation-framework string-concatenation mongodb-updateI want to make a text search case insensitive with regex query with spring-data mongo . For example in Oracle : select * …
full-text-search mongodb-query spring-data-mongodbIs it possible to wildcard the key in a query? For instance, given the following record, I'd like to do …
mongodb mongodb-query wildcardGiven a collection like this:.. [ { "_id" : ObjectId("5546329a470000850084a621"), "name": "Joe", "surname": "Smith", "accounts": [ { "_id" : ObjectId("5546329a470000850084a655"), "default": true, "…
mongodb mongodb-query embedded-documentsHow to query all {"module" : "B"} ? The following query doesn't work: db.XXX.find({ "_id" : { "module" : "B" } }); Thanks a ton! …
mongodb mongodb-query