graphql-shield
graphql-shield copied to clipboard
Dependency Issue with Graphql v15 vs v16
Question about GraphQL Shield
Hello! I'm trying to add graphql-shield to one of my projects, but I can not install it. It looks like that I can't use it with graphql v16.x.x
With v15 i get it to work. Is this normal?
npm ERR! Found: [email protected]
npm ERR! node_modules/graphql
npm ERR! graphql@"^16.3.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from [email protected]
npm ERR! node_modules/graphql-shield
npm ERR! graphql-shield@"^7.5.0" from the root project
Thanks!
Hey @barrynorman :wave:,
Thank you for opening an issue. We will get back to you as soon as we can. Have you seen our Open Collective page? Please consider contributing financially to our project. This will help us involve more contributors and get to issues like yours faster.
https://opencollective.com/graphql-shield
We offer
priority
support for all financial contributors. Don't forget to addpriority
label once you become one! :smile:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Probably shouldn't close this one? Updating for graphQL 16 compatibility I guess would be the fix?
Can we get an update to GraphQL 16?
Yeah, this is really needed.
Can confirm, still an issue, graphql v15.x requirements collide with Apollo packages that utilize v16.x
@maticzav would you accept a PR to bump to GraphQL v16?
Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼
This is a major issue. This package isn't compatible with Apollo anymore. Same problem with graphql-middleware. Only solution is to abandon these packages or wait for them to update.
Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼
this woks, but I'd prefer not to have to rewrite all my code. There's also an issue with graphql-middleware.
Would the maintainers accept a PR to bump this to v16? I'm sure we could get a few people together to complete the task.
Can confirm. Doesn't work still.
Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼
Hi @icazemier Do you know of any code out there that has done this swap from GraphQL-Shield to using resolver composition, that I can look at? Or even some code that does that same job (without having done the code change from graphql-shield)?
Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼
It would be great to know how to transition from graphql-shield
to @graphql-tools/resolvers-composition
for nexus
users.
graphql v16 support was released
I've just recently done this transition, it's very simple once you have a basic example, I will write one up.
On Thu, 8 Sep 2022, 05:23 Hays Clark, @.***> wrote:
Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼
It would be great to know how to transition from graphql-shield to @graphql-tools/resolvers-composition for nexus users.
— Reply to this email directly, view it on GitHub https://github.com/maticzav/graphql-shield/issues/1389#issuecomment-1240140559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILMBQX7VRLISIJ7J33FYPLV5FE3DANCNFSM5PPDN2QA . You are receiving this because you commented.Message ID: @.***>
--
Book a Demo today for our new NEXTVOICE platform. Click here https://www.vadacom.com/for more information and book a demo at @.** @.***> *
- New Admin portal focused on simple self-management
- Install our softphone on Android or iPhone and on PC or Mac and communicate where ever you are
- A system built as a high resilient telco-grade voice platform