Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose generate new ObjectId

var mongoose = require('mongoose');
var id = mongoose.Types.ObjectId();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongoose #generate #ObjectId
ADD COMMENT
Topic
Name
6+4 =