Ein Mongoose-Modell hat kein insertOne
Methode. Verwenden Sie create
Methode stattdessen:
Account.create({email: req.body.email, password: req.body.password}, function (err, doc) {
Ein Mongoose-Modell hat kein insertOne
Methode. Verwenden Sie create
Methode stattdessen:
Account.create({email: req.body.email, password: req.body.password}, function (err, doc) {