doqmentdb
doqmentdb copied to clipboard
Unhandled rejection Error when creating a new object
When i try to create a new user like this:
users.create({ name: req.body.name, email: req.body.email, password: req.body.password}) .then(console.log) .catch(console.log);
I only get an unhandled rejection error. Screenshot of the Error attached.