User.find().then(function () { var user = new User({ username: 'haige', password: 1314 }); user.save(); res.send({name:"sss"}); return; })