SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this also
const { ObjectId } = require('mongodb'); const _id = ObjectId("4eb6e7e7e9b7f4194e000001");
it's simplest way to do it