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
{{ message }}
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
And subsequently, build/dev-server.js needs the following change:
// Create a MonboDB connection pool and start the Node.js appMongoClient.connect(config.database.mongoURL,{promiseLibrary: Promise}).catch(err=>console.error(err.stack)).then((db)=>{app.locals.db=db;// See http://expressjs.com/en/4x/api.html#app.localsapp.listen(port);
...
});
In
config/index.js
needs to be changed to:
And subsequently,
build/dev-server.js
needs the following change:to:
To reflect the changes made to in Mongodb v3+
Specifically:
version 3+ has
connectCallback(error, client)
version 2 has
connectCallback(error, db)
so there's an extra step in getting the collections.
I'd make a pull request, but I actually do not know how to do this yet.
The text was updated successfully, but these errors were encountered: