SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using Node.js:
> var ObjectId = require('mongodb').ObjectId; > var id = req.params.gonderi_id; > var o_id = new ObjectId(id); > db.test.find({_id:o_id})
Edit: corrected to new ObjectId(id), not new ObjectID(id)