Top "Mongodb" questions

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

Random record from MongoDB

I am looking to get a random record from a huge (100 million record) mongodb. What is the fastest and most …

mongodb random mongodb-query
Mongodb: Failed to connect to 127.0.0.1:27017, reason: errno:10061

Here is my mongod.cfg file: bind_ip = 127.0.0.1 dbpath = C:\mongodb\data\db logpath = C:\mongodb\log\mongo-server.log verbose=…

windows mongodb database nosql
What is the "__v" field in Mongoose

I'm using Mongoose version 3 with MongoDB version 2.2. I've noticed a __v field has started appearing in my MongoDB documents. Is …

node.js mongodb mongoose
How to export collection to CSV in MongoDB?

How do you export all the records in a MongoDB collection to a .csv file? mongoexport --host localhost --db dbname …

mongodb csv schemaless database
how can I see what ports mongo is listening on from mongo shell?

If I have a mongo instance running, how can I check what port numbers it is listening on from the …

mongodb
MongoDb shuts down with Code 100

I followed the MongoDb Docs to setup my first MongoDb, When I start MongoDB using the command C:\Program Files\…

mongodb
Mongoose's find method with $or condition does not work properly

Recently I start using MongoDB with Mongoose on Nodejs. When I use Model.find method with $or condition and _id …

mongodb node.js mongoose
How to print out more than 20 items (documents) in MongoDB's shell?

db.foo.find().limit(300) won't do it. It still prints out only 20 documents. db.foo.find().toArray() db.foo.find().…

mongodb
Pretty print in MongoDB shell as default

Is there a way to tell Mongo to pretty print output? Currently, everything is output to a single line and …

mongodb command-line-interface mongo-shell
Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version

I am getting the below error: { [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed …

javascript angularjs windows node.js mongodb