my-mongo-list
A simple todo-list module built on top of mongodb.
Install
npm install my-mongo-list mongodb --save
Example
var mongoList = ;var mongoURL = "mongodb://localhost:27017/mongolisttest";var MongoClient = MongoClient; MongoClient;
API
mongolist.save(list, cb(err, saved))
Saves a todo list.
The err object is generated by Joi to support
validations.
The id of the todo list will be in the saved._id
property.
mongolist.load(id, cb(err, list))
Load a todo list given an id.
mongolist.remove(id)
Remove a todo list given an id.
License
MIT