Mongodb – Why is the error showing ` catch((err) => {` is not a function?
I'm trying to authenticate users when registering on my app using Nodejs, express and mongoDB. The user gets registered successfully and added to my database but then I get this error in the console that .catch is not a function.…