This tag is for questions related to querying and updating MongoDB collections, either through the mongo shell or using a programming language driver.
Just a quick question about something I've just experienced and I'm still thinking about why: mongos> db.tickets.count({ "…
mongodb mongodb-query mongodb-java morphiaIs there a simple OR elegant method (or query that I can write) to retrieve the last updated timestamp (of …
mongodb mongodb-query mongodb-oplogI can't believe I have to ask this, but how do I stop a query I just ran, which is …
mongodb mongodb-queryWhen using MongoDB's $in clause, does the order of the returned documents always correspond to the order of the array …
mongodb mongoose mapreduce mongodb-query aggregation-frameworkI have documents like this: { "_id" : ObjectId("557eaf444ba222d545c3dffc"), "foreing" : ObjectId("538726124ba2222c0c0248ae"), "value" : "test", } …
mongodb mongodb-query aggregation-frameworkHow can I get and return the first element in an array using a Mongo aggregation? I tried using this …
mongodb mongodb-query aggregation-frameworkIn mongodb there are documents in the following structure: { "_id" : ObjectId("52d017d4b60fb046cdaf4851"), "dates" : [ 1399518702000, 1399126333000, 1399209192000, 1399027545000 ], "dress_number" : "4", "name" : "…
arrays mongodb mongodb-query bsonAssuming I have a collection called "posts" (in reality it is a more complex collection, posts is too simple) with …
mongodb mongodb-query aggregation-frameworkScenario: Consider I am having a collection called MyCollection, with following data: { "_id" : 'MyUniqueID_01' "CreatedTime" : "2013-12-01T14:35:00Z", "…
json mongodb mongodb-query bson node-mongodb-nativeI want to add a record to the collection if the key doesn't already exist. I understand [MongoDB][1] offers the …
python mongodb mongodb-query pymongo