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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongoose 5.4.4 Deprecation Warning #29

Open
nartawak opened this issue Jan 16, 2019 · 1 comment
Open

Mongoose 5.4.4 Deprecation Warning #29

nartawak opened this issue Jan 16, 2019 · 1 comment

Comments

@nartawak
Copy link
Contributor

There is some deprecation with the MongoDB Driver. I fixed all warning with the Mongoose documentation 馃憞 but create this issue to remember for further version of Mongoose or MongoDB driver

There is some workaround
https://mongoosejs.com/docs/deprecations.html

Related issue :
Automattic/mongoose#6922 (comment)
Automattic/mongoose#6880

@dcsan
Copy link

dcsan commented Jul 3, 2019

actually i still get the warnings with the workaround and 5.6.2

import * as mongoose from "mongoose"

mongoose.set('useNewUrlParser', true)
mongoose.set('useFindAndModify', false)
mongoose.set('useCreateIndex', true)


  await mongoose.connect(mongoUri, {
    useNewUrlParser: true,
    // useCreateIndex: true  // throws a .ts error
  })

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

2 participants