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

Update to graphql 16 #54

Closed
danielkochdakitec opened this issue Feb 4, 2023 · 2 comments
Closed

Update to graphql 16 #54

danielkochdakitec opened this issue Feb 4, 2023 · 2 comments

Comments

@danielkochdakitec
Copy link

Summary

Please update the package so we can use Gatsby v5. I guess it is necessary to update the graphql dependency from:

"graphql": "^0.13.x | ^14.0.0 | ^15.0.0",

to also be compatible with graphl 16 since Gatsby uses graphl ^16.6.0

@benjie
Copy link
Member

benjie commented Feb 6, 2023

Unfortunately PostGraphile V4 cannot support GraphQL v16 (at least not without significant work):

graphile/graphile-engine#764 (comment)

PostGraphile V5 will be released at some point this year and supports GraphQL v16, once that's out we can use it for this Gatsby source. In the mean time, you might consider using PostGraphile as a remote schema using gatsby-source-graphql directly.

@danielkochdakitec
Copy link
Author

danielkochdakitec commented Feb 6, 2023

Thank you for this insight! What I did for now is putting a resolution in my package.json:

"resolutions": {
   "graphql": "15.8.0"
},

This might not be the best solution, but at least it is a temporary workaround for me.

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

No branches or pull requests

2 participants