MongoDB is a scalable, high-performance, open source, document-oriented NoSQL database. It supports a large number of languages and application development platforms. Questions about server administration can be asked on http://dba.stackexchange.com.
If you have subdocument arrays, Mongoose automatically creates ids for each one. Example: { _id: "mainId"
I have a database wrapper class that establishes a connection to some MongoDB instance: async connect(connect
I am writing a webapp with Node.js and mongoose. How can I paginate the results I get from a .find() call? I w
In my MongoDB, I have a student collection with 10 records having fields name and roll. One record of this col
db.foo.find().limit(300) won't do it. It still prints out only 20 documents. db.foo.find().toArray() d
Following is my user schema in user.js model - var userSchema = new mongoose.Schema({ local: { na
Can you share your thoughts how would you implement data versioning in MongoDB. (I've asked similar quest
I'm using the node-mongodb-native driver with MongoDB to write a website. I have some questions about ho
I've found this question answered for C# and Perl, but not in the native interface. I thought this would
Below is my code var mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/tes
I'd like to get the names of all the keys in a MongoDB collection. For example, from this: db.things.in
Example: > db.stuff.save({"foo":"bar"}); > db.stuff.find({"foo":"bar"}).count(); 1 > db.stuff.find(
I have been very excited about MongoDb and have been testing it lately. I had a table called posts in MySQL wi
I am looking to get a random record from a huge collection (100 million records). What is the fastest and most
I'm using Mongoose version 3 with MongoDB version 2.2. I've noticed a __v field has started appearin
I want to export all collections in MongoDB by the command: mongoexport -d dbname -o Mongo.json The resul
{ name: 'book', tags: { words: ['abc','123'], lat: 33,
How can I add a new field to every document in an existent collection? I know how to update an existing docum
I want to set up user name & password authentication for my MongoDB instance, so that any remote access wi