Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by...
How would I find duplicate fields in a mongo collection. I’d like to check if any of the “name” fields are duplicates. { "name" : "ksqn291", "__v" : 0,...
I am trying to change the type of a field from within the mongo shell. I am doing this… db.meta.update( {'fields.properties.default': { $type : 1 }}, {'fields.properties.default': { $type...
Here is array structure contact: { phone: [ { number: "+1786543589455", place: "New Jersey", createdAt: "" } { number: "+1986543589455", place: "Houston", createdAt: "" } ] } Here I...
I am just starting out with MongoDB and one of the things that I have noticed is that it uses BSON to store data internally. However the documentation is...
Is there a way to specify a condition of “where document doesn’t contain field” ? For example, I want to only find the first of these 2 because it...
How to I get mongo to use a mounted drive on ec2? I really do not understand. I attached a volume on ec2 formatted the drive as root and...
The question is as basic as it is simple… How do you log all queries in a “tail”able log file in mongodb? I have tried: setting the profiling level...
I tried mongo replica sets for the first time. I am using ubuntu on ec2 and I booted up three instances. I used the private IP address of each...
I have mongoDB 3.2 installed locally for Windows 7. I would like to find out its specific version (like is it 3.2.1, or 3.2.3 or…). How could I find...