-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in the server.js file mongoose.connect code #122
Comments
Yes, it took me a while to figure out why my connection was not working. As I understood, we need to remove this |
Using mongoose 6.9.1 with MongoDB 6.0.3, I was able to establish a connection by doing the following:
config.js server.js |
Thanks for this tip, just solved the issue using your comment. |
The options are not supported on mongoose v6, however, it's the useCreateIndex that was completely crashing a mirror of the repo's code. Wirth updating as came close to abandoning the book as 'outdated' at such an early section (chapter 3)
The text was updated successfully, but these errors were encountered: