10
node.js mongodb, _id node-mongodb-native tarafından belge seçin
Kimliğe göre bir belge seçmeye çalışıyorum Denedim: collection.update({ "_id": { "$oid": + theidID } } collection.update({ "_id": theidID } collection.update({ "_id.$oid": theidID }} Ayrıca denedi: collection.update({ _id: new ObjectID(theidID ) } Bu bana 500 hatası veriyor ... var mongo = require('mongodb') var BSON = mongo.BSONPure; var o_id = new BSON.ObjectID(theidID …