Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose get id after save

n.save(function(err,room){
  var newRoomId = room._id;
  });
 
PREVIOUS NEXT
Tagged: #mongoose #id #save
ADD COMMENT
Topic
Name
8+3 =