graphql-compose / graphql-compose-mongoose

Mongoose model converter to GraphQL types with resolvers for graphql-compose https://github.com/nodkz/graphql-compose
MIT License
709 stars 94 forks source link

Incompatible with mongoose 8 #440

Closed bmrinal closed 7 months ago

bmrinal commented 8 months ago

There is an issue with the package it seems at the moment. Throws the below peer dependency warning conflict with mongoose 8

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: my-app-api@2.4.0

npm ERR! Found: mongoose@8.0.0

npm ERR! node_modules/mongoose

npm ERR!   mongoose@"^8.0.0" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer mongoose@"^7.0.0 || ^6.0.0 || ^5.0.0 || ^4.4.0" from graphql-compose-mongoose@9.8.0

npm ERR! node_modules/graphql-compose-mongoose

npm ERR!   graphql-compose-mongoose@"^9.8.0" from the root project

npm ERR!

npm ERR! Fix the upstream dependency conflict, or retry

npm ERR! this command with --force or --legacy-peer-deps

npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

npm ERR!

Any takers?

nodkz commented 7 months ago

just published v10.0.0 that supports mongoose v8