Find duplicate records in MongoDB
How would I find duplicate fields in a mongo collection. I’d like to check if any of the “name” fields are duplicates. { … Read more
How would I find duplicate fields in a mongo collection. I’d like to check if any of the “name” fields are duplicates. { … Read more
I am playing around with MongoDB trying to figure out how to do a simple SELECT province, COUNT(*) FROM contest GROUP BY province … Read more
How can I (in MongoDB) combine data from multiple collections into one collection? Can I use map-reduce and if so then how? I … Read more
I’d like to get the names of all the keys in a MongoDB collection. For example, from this: db.things.insert( { type : [‘dog’, … Read more
Suppose you have the following documents in my collection: { “_id”:ObjectId(“562e7c594c12942f08fe4192”), “shapes”:[ { “shape”:”square”, “color”:”blue” }, { “shape”:”circle”, “color”:”red” } ] }, { … Read more
In MongoDB, is it possible to update the value of a field using the value from another field? The equivalent SQL would be … Read more