node.js mongodb select document by _id node-mongodb-native

var mongo = require('mongodb');
var o_id = new mongo.ObjectID(theidID);
collection.update({'_id': o_id});

Leave a Comment