Skip to content

Does mongoose support mongo stable api? #12875

Answered by vkarpov15
KKHKO asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to do mongoose.connect(url, { serverApi: { version: '1', strict: false }, autoIndex: false })

Just make sure you're using Mongoose 6 or higher. Mongoose 5 doesn't support the stable API AFAIK, and useNewUrlParser is only supported in Mongoose 5, which makes me think you're on an old version of Mongoose.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KKHKO
Comment options

Answer selected by KKHKO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants