Open carlosabreuh opened 3 years ago
Old ({ _id : mongodb.ObjectId(req.params.id)})
New ({ "_id" : mongodb.ObjectId(req.params.id)})
I thought they were optional unless there were a dot notation like
db.test.find({"name.first": "Brad"})
Can you direct me to the docs where it says it has changed?
thanks
_id needs to be in quotes in order for it to work with MongoDB. This is new.