create mongoose object id code example
Example 1: mongoose id from string
var mongoose = require('mongoose');
var id = mongoose.Types.ObjectId('4edd40c86762e0fb12000003');
Example 2: mongoose generate objectid
var mongoose = require('mongoose');
var id = mongoose.Types.ObjectId();