我试图使用猫鼬保存新记录。我没有在回调中获取保存的文档。 app.post("/register",(req,res) => {
let userData = req.body;
let user = new User(userData)
user.save().then((err,doc) => {
res.json({"success":true,"d
我如何使这个update工作? 电流误差: MongoError: cannot use the part (cartheft of crimes.0.cartheft.chance) to traverse the element
我也试图把$,但后来我得到: (node:10360) UnhandledPromiseRejectionWarning: Unhandled promise r