graphql-shield icon indicating copy to clipboard operation
graphql-shield copied to clipboard

Dependency Issue with Graphql v15 vs v16

Open barrynorman opened this issue 2 years ago • 14 comments

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!

barrynorman avatar Feb 27 '22 15:02 barrynorman

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 add priority 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.

stale[bot] avatar Apr 16 '22 10:04 stale[bot]

Probably shouldn't close this one? Updating for graphQL 16 compatibility I guess would be the fix?

epmatsw avatar May 24 '22 16:05 epmatsw

Can we get an update to GraphQL 16?

fullStackDataSolutions avatar Jun 07 '22 15:06 fullStackDataSolutions

Yeah, this is really needed.

devlsh avatar Jun 10 '22 07:06 devlsh

Can confirm, still an issue, graphql v15.x requirements collide with Apollo packages that utilize v16.x

farawaysouthwest avatar Jun 21 '22 21:06 farawaysouthwest

@maticzav would you accept a PR to bump to GraphQL v16?

stephenh avatar Jun 29 '22 14:06 stephenh

Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼

icazemier avatar Jul 02 '22 14:07 icazemier

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.

curbol avatar Jul 06 '22 23:07 curbol

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.

fullStackDataSolutions avatar Jul 07 '22 15:07 fullStackDataSolutions

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.

farawaysouthwest avatar Jul 07 '22 15:07 farawaysouthwest

Can confirm. Doesn't work still.

binarybaba avatar Jul 13 '22 14:07 binarybaba

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)?

br-vadacom avatar Jul 15 '22 08:07 br-vadacom

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.

haysclark avatar Sep 08 '22 02:09 haysclark

graphql v16 support was released

dimatill avatar Oct 07 '22 17:10 dimatill

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 

br-vadacom avatar Oct 11 '22 09:10 br-vadacom