a todo list backed by mongodb


A simple todo-list module built on top of mongodb.

npm install my-mongo-list mongodb --save
var mongoList = require("my-mongo-list");
var mongoURL = "mongodb://localhost:27017/mongolisttest";
var MongoClient = require("mongodb").MongoClient;
MongoClient.connect(db, { w: 1 }, function(errdb) {
  var mylist = mongoList(db);{
    name: "hello world",
    items: [{
      name: "aaaa"
  }, function(errlist) {
    console.log(err, list);

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.

Load a todo list given an id.

Remove a todo list given an id.