Postgraphile: graphql dependency

Created on 20 Mar 2018  路  10Comments  路  Source: graphile/postgraphile

I'm submitting a ...

  • [x] bug report
  • [ ] feature request
  • [ ] question

PostGraphile version: 4.0.0-beta.3

Minimal SQL file that can be loaded into a clean database:


Steps to reproduce:

Setup react-apollo project.

Current behavior:

the graphql dependency that is in postgraphile is conflicting with the app I'm writing because it's pretty outdated.

Expected behavior:

would like to see the dependency updated so I can continue working on my project.

Most helpful comment

@james-ff : this is my package.json file: https://github.com/barbalex/apf2/blob/34f75b9604389e4b9275811d46c3112be3d2b30f/package.json#L94-L96

The treacherous part of this fix is when you update graphql itself: don't forget to also update the resolution!

All 10 comments

We support "graphql": ">=0.6 <0.13" because we can't go higher due to codemirror-graphql for GraphiQL; please forward your concerns here:

https://github.com/graphql/codemirror-graphql

Wow; I recommend using yarn - that should clear up a lot of those duplicates for you. Add [email protected] to package.json or use the yarn resolutions feature.

@benjie

I _do_ use yarn. And the resolutions feature.

But I messed up by updating the graphql version in the dependencies key to v13.2 while leaving its version in the resolution key at 13.0 :-(

Only noticed thanks to your comment. Thanks!

Ahhhh; that explains it!

@barbalex Hi, are you able to share your yarn resolutions fix?

@james-ff : this is my package.json file: https://github.com/barbalex/apf2/blob/34f75b9604389e4b9275811d46c3112be3d2b30f/package.json#L94-L96

The treacherous part of this fix is when you update graphql itself: don't forget to also update the resolution!

Seems that the library in question now supports up to v14 of GraphQL =]

https://github.com/graphql/codemirror-graphql/commit/a4a0ff558622247e8d7ccc0acf978f9e0078dec7

https://github.com/graphql/graphiql/blob/master/package.json

GraphiQL doesn鈥檛 yet though 馃様

There's always one =P.

I rest hope in this PR https://github.com/graphql/graphiql/pull/728.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwdotjs picture jwdotjs  路  5Comments

kilianc picture kilianc  路  4Comments

k-ogawa-1988 picture k-ogawa-1988  路  3Comments

jayp picture jayp  路  3Comments

safaiyeh picture safaiyeh  路  3Comments