graphile / gatsby-source-pg

PostgreSQL source for Gatsby, powered by PostGraphile
36 stars 15 forks source link

Update to graphql 16 #54

Closed danielkochengineer closed 1 year ago

danielkochengineer commented 1 year ago

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 commented 1 year ago

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

https://github.com/graphile/graphile-engine/pull/764#issuecomment-1055726062

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.

danielkochengineer commented 1 year ago

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.