Mongo Doc Store 0.0.4
A minimalist mongodb client for Node.js
Installation
$ npm install mongo-docstore
Examples
var store = ; // 1. Configure...storeconnectionString = 'your-mongo-connection-here'; // 2. Add a document to the 'beatles' collection (id is optional)...var george = id: 1 name: 'George Harrison' role: 'Guitar' ; store; // 3. Update a document on the 'beatles' collection...georgerole = 'Guitar and sitar' store; // 4. Remove a document from the 'beatles' collection...var georgeId = georgeid; store; // 5. Find One document in the 'beatles' collection...store; // 6. Find One document in the 'beatles' collection...var georgeId = georgeid; store; // 7. Find more than one document in the 'beatles' collection...store; // 8. Find all the documents in the 'beatles' collection (just remove the selector)...store; // 9. Any other crazy thing with the 'beatles' collection...; // 10. Any crazy thing with the database...;
License (MIT)
Copyright (c) 2012, Leandro Boffi.