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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB 7.0 #13875

Closed
1 task done
GaborTorma opened this issue Sep 18, 2023 · 4 comments
Closed
1 task done

MongoDB 7.0 #13875

GaborTorma opened this issue Sep 18, 2023 · 4 comments
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation help wanted help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
Milestone

Comments

@GaborTorma
Copy link

Prerequisites

  • I have written a descriptive issue title

Mongoose version

7

Node.js version

18

MongoDB version

7.0

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

Debian 12

Issue

MongoDB 7.0 is supported by Mongoose?

@GaborTorma GaborTorma added help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary help wanted labels Sep 18, 2023
@vkarpov15
Copy link
Collaborator

Yes, Mongoose 7.4 and up support MongoDB 7.

@vkarpov15 vkarpov15 added this to the 7.5.4 milestone Sep 26, 2023
@vkarpov15 vkarpov15 added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Sep 26, 2023
@vkarpov15
Copy link
Collaborator

Fixed by #13934

@JavaScriptBach
Copy link
Contributor

@vkarpov15 Out of curiosity, why are only Mongoose 7.4 and up compatible with MongoDB 7? MongoDB docs claim that any driver 4.0 or later should work, although some new features may not be supported. That implies Mongoose 6 should be compatible, too.

Do you know if it's sound to use Mongoose 6 with MongoDB 7?

@vkarpov15
Copy link
Collaborator

It is, unless you're using some new MongoDB 7 features. Our rationale is that the docs you linked to say that MongoDB Node driver 5.7 is the minimum version you need to fully support MongoDB 7:

image

And Mongoose 7.4 is the minimum version of Mongoose that uses MongoDB Node driver 5.7:

image

However, given that you have partial support for MongoDB 7 from MongoDB Node driver 4.0 and up, you should be fine to use Mongoose 6, which uses MongoDB Node driver 4.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation help wanted help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
Projects
None yet
Development

No branches or pull requests

3 participants