Top "Mongodb" questions

MongoDB is a scalable, high-performance, open source, document-oriented NoSQL database.

How to execute mongo commands through shell scripts?

I want to execute mongo commands in shell script, e.g. in a script test.sh: #!/bin/sh mongo myDbName …

mongodb bash shell sh
return query based on date

I have a data like this in mongodb { "latitude" : "", "longitude" : "", "course" : "", "battery" : "0", "imei" : "0", "altitude" : "F:3.82V", "mcc" : "07", "mnc" : "007B", "lac" : "2…

mongodb
How do I perform the SQL Join equivalent in MongoDB?

How do I perform the SQL Join equivalent in MongoDB? For example say you have two collections (users and comments) …

mongodb join
Find MongoDB records where array field is not empty

All of my records have a field called "pictures". This field is an array of strings. I now want the …

mongodb mongoose
MongoDB Show all contents from all collections

Is it possible to show all collections and its contents in MongoDB? Is the only way to show one by …

mongodb collections find
MongoDB - admin user not authorized

I am trying to add authorization to my MongoDB. I am doing all this on Linux with MongoDB 2.6.1. My mongod.…

mongodb admin
Add new field to every document in a MongoDB collection

How can I add a new field to every document in an existent collection? I know how to update an …

mongodb field nosql
How to select a single field for all documents in a MongoDB collection?

In my MongoDB, I have a student collection with 10 records having fields name and roll. One record of this collection …

mongodb projection
MySQL vs MongoDB 1000 reads

I have been very excited about MongoDb and have been testing it lately. I had a table called posts in …

mysql performance mongodb
Retrieve only the queried element in an object array in MongoDB collection

Suppose you have the following documents in my collection: { "_id":ObjectId("562e7c594c12942f08fe4192"), "shapes":[ { "shape":"square", "color":"…

mongodb mongodb-query aggregation-framework projection