Skip to content
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

change line 5 on database.js to remove deprecated connection options #133

Open
codestafa opened this issue Sep 7, 2022 · 2 comments
Open

Comments

@codestafa
Copy link

codestafa commented Sep 7, 2022

from

const conn = await mongoose.connect(process.env.DB_STRING, {
      useNewUrlParser: true,
      useUnifiedTopology: true,
      useFindAndModify: false,
      useCreateIndex: true
    })

to


const conn = await mongoose.connect(process.env.DB_STRING, {
      useFindAndModify: false,
      useCreateIndex: true,
    });

@codestafa codestafa changed the title as a developer, i'd like to change line 5 on database.js to reflect updated changes as a developer, i'd like to change line 5 on database.js to remove deprecated connection options Sep 7, 2022
@codestafa codestafa changed the title as a developer, i'd like to change line 5 on database.js to remove deprecated connection options change line 5 on database.js to remove deprecated connection options Sep 7, 2022
@romanstetsyk
Copy link

@calebdye
Copy link

I have also opened a pull request for this as the app will crash with those connection options present. The mongoose version also needs to be updated to prevent crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants