mongoose generate new ObjectId code example
Example 1: mongoose generate objectid
var mongoose = require('mongoose');
var id = mongoose.Types.ObjectId();
Example 2: mongoose generate new ObjectId
var mongoose = require('mongoose');
var id = mongoose.Types.ObjectId();