Thank you for your comment on typo. I have corrected it.
I did not need the async to have a working code but I guess it depends, the official documentation does not mention it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for the post. Anyway, I need to show two errors in the code:
async
beforeclient.connect()
otherwise it didn't work.dbConnection
is undeclared. It has to be substituted withclientPromise
(probably a typo).Thank you for your comment on typo. I have corrected it.
I did not need the async to have a working code but I guess it depends, the official documentation does not mention it.