mongodb object id in javascript code example
Example 1: what is objectid in mongodb
var ObjectId = require('mongodb').ObjectID
var id = new ObjectId();
console.log(id)
Example 2: mongo query new id
x = ObjectId()
var ObjectId = require('mongodb').ObjectID
var id = new ObjectId();
console.log(id)
x = ObjectId()