Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create record mongoose model

var _user = new UserModel({
      id: profile.id,
      name: profile.name,
  });

_user.save(function (err,user) {
    if (err)  console.log(err);
    console.log("saved");
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #record #mongoose #model
ADD COMMENT
Topic
Name
3+2 =