📜  创建新记录 mongoose - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:48.293000             🧑  作者: Mango

代码示例1
// Create new user.
   let newUser = {
       username: req.body.username,
       password: passwordHashed,
       salt: salt,
       authorisationKey: authCode
   };

   // From require('UserModel');
   return ModelUser.create(newUser);