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

Is Mongoose 7 supported? #9

Open
michaelschufi opened this issue Aug 23, 2023 · 2 comments
Open

Is Mongoose 7 supported? #9

michaelschufi opened this issue Aug 23, 2023 · 2 comments
Labels
question Further information is requested

Comments

@michaelschufi
Copy link

Hi

I'm new to Mongoose and thought I try to use mongoose-zod, as it looks pretty nice :D

However, npm is reporting only version 6 of Mongoose is supported. Is this correct / will it break if I use Mongoose 7 instead?
Is it a problem to use Mongoose 6? I like to have the newest versions if possible 😅

@andreww2012
Copy link
Owner

Hi @michaelschufi thank you!

The supported version range is correct, this package only currently supports mongoose 6. I'm planning to investigate what changes are required for supporting the next major mongoose version soon - just don't have enough free time lately for that.
Anyway you can give mongoose 7 a try to see whether it conflicts with mongoose-zod. I believe you would need to install that version with --legacy-peer-deps flag if you're using npm.

@soknifedev
Copy link

Hi,

I would like to help add support for Mongoose 7. We really want to infer the Mongoose schema from the Zod schemas to make our lives easier.

Are there any special considerations I should take into account? If you’ve already made some progress, I’d be happy to continue from there if that’s okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants