Yet another mongodb facade.
Install by running
npm install mniam
Connect to database
mniam-test and create
friends collection with index on
var db =friends = db;
Mniam is using MongoClient to establish the connection: full mongo database URLs are supported. The database function also takes a hash of options divided into db/server/replset/mongos allowing you to tweak options not directly supported by the unified url string format.
var db =
Add a new documents:
Update a document:
Remove a document:
options to create and configure cursor.
Iterate over the results of the query using
toArray- converts query results into array
onItemsequentially for all results
eachLimit- iterates over all results calling
onItemin parallel, but no more than
limitat a time
friendsoptions sort: age: 1;