I\'m trying to select a document by id
I\'ve tried:
collection.update({ \"_id\": { \"$oid\": + theidID } } collection.update({ \"_id\": theidID } c
With native_parser:false:
native_parser:false
var BSON = require('mongodb').BSONPure; var o_id = BSON.ObjectID.createFromHexString(theidID);
With native_parser:true:
native_parser:true
var BSON = require('mongodb').BSONNative; var o_id = BSON.ObjectID.createFromHexString(theidID);