-
Does mongoose support mongo stable api? My code: I know MongoDB node driver support mongo stable api : |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should be able to do Just make sure you're using Mongoose 6 or higher. Mongoose 5 doesn't support the stable API AFAIK, and |
Beta Was this translation helpful? Give feedback.
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.