9
node.js mongodb chọn tài liệu theo _id node-mongodb-native
Tôi đang cố gắng chọn một tài liệu theo id Tôi đã thử: collection.update({ "_id": { "$oid": + theidID } } collection.update({ "_id": theidID } collection.update({ "_id.$oid": theidID }} Cũng đã thử: collection.update({ _id: new ObjectID(theidID ) } Điều này mang lại cho tôi một lỗi 500 ... var mongo …