You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is a very great material to learn, thanks!
but i am confused about something.
at src/dao/movieDAO.js file, there is a injectDB method, should this method async?
i mean, what passed to this method is a MongoClient which i think already established an connection, so it does not need async any more. and it seems conn.db() not return a promise.
am i right? or which part of my thought is wrong? thx.
The text was updated successfully, but these errors were encountered:
this is a very great material to learn, thanks!
but i am confused about something.
at
src/dao/movieDAO.js
file, there is ainjectDB
method, should this method async?i mean, what passed to this method is a
MongoClient
which i think already established an connection, so it does not need async any more. and it seemsconn.db()
not return a promise.am i right? or which part of my thought is wrong? thx.
The text was updated successfully, but these errors were encountered: