question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update to Mongoose v6 and MongoDB v4

See original GitHub issue

First 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:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
devconceptcommented, Oct 1, 2021

A fix has been released v5.0.2. Please confirm that it works to close this issue.

1reaction
devconceptcommented, Sep 27, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found