how to create an REST API using Express • Learn how to use MongoJS to connect Express to a Mongo Database • See how an Angular SPA can connect to an Express RESTful API
to manage acquired by StrongLoop on June 2014 • StrongLoop was acquired by IBM on September 2015 • Adopted by the Node.js Foundation Incubator on January 2016 • Current version of Express is 4.14.1 • Express 5.0 is still in the alpha release stage
db.mycollection.findOne({ _id: mongojs.ObjectId('523209c4561c640000000001') }, function(err, doc) { // doc._id.toString() === '523209c4561c640000000001' }); // find all named 'mathias' and increment their level db.mycollection.update({name: 'mathias'}, {$inc: {level: 1}}, function () { // the update is complete });