how to generate unique id in mongodb code example
Example: mongodb genrerate unique id
const ObjectId = require('mongodb').ObjectID
const id = new ObjectId();
console.log(id)
const ObjectId = require('mongodb').ObjectID
const id = new ObjectId();
console.log(id)