Update to Mongoose v6 and MongoDB v4
See original GitHub issueFirst I want to thank you for this wonderful package.
Do you know when this project will be updated to use Mongoose v6 and MongoDB v4? I see that PRs for these issues are already open: https://github.com/devconcept/multer-gridfs-storage/pull/375 https://github.com/devconcept/multer-gridfs-storage/pull/376
I have a project that relies on both multer-gridfs-storage
and mongoose
, and I can’t update to mongoose v6 until this package is updated due to type conflicts.
Describe your problem
Environment
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Mongoose v6.8.1: MongoDB Version Compatibility
MongoDB Server Version Compatibility Mongoose relies on the MongoDB Node. js Driver to talk to MongoDB. You can refer to this table for...
Read more >Upgrade to the Latest Revision of MongoDB
When upgrading from MongoDB 4.0.6 or earlier to 4.0.7 or later, the members of the sharded clusters will continue to produce v0 or...
Read more >mongoose - npm
Mongoose MongoDB ODM. Latest version: 6.8.1, last published: 7 days ago. Start using mongoose in your project by running `npm i mongoose`.
Read more >How to Migrate Mongoose from v5.x to v6.x - Morioh
Mongoose now requires Node.js >= 12.0.0. Mongoose still supports MongoDB server versions back to 3.0.0. MongoDB Driver 4.0. Mongoose now uses v4 ......
Read more >mongoose - npm.io
mongoose v6.6.5 ... Mongoose is a MongoDB object modeling tool designed to work in an asynchronous ... You can also findOne , findById...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A fix has been released v5.0.2. Please confirm that it works to close this issue.
I see now. Is not that mongoose is incompatible, is that by not providing the client parameter the module assumes version 2.2 of mongodb. This is an easy fix and dealing with the error is the wrong approach since the module deals with behavior from versions 2.2, 3 and 4 and also the lack of parameters provided by the consumer of the module will make it unreliable. I will provide a fix on the next few days.