Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Relax dependency requirements #66

Open
bessey opened this issue Jul 27, 2018 · 5 comments
Open

Relax dependency requirements #66

bessey opened this issue Jul 27, 2018 · 5 comments

Comments

@bessey
Copy link

bessey commented Jul 27, 2018

I'm using this tool just to extract queries from JS files, and it does that great, but the strict dependcy requirements cause it to load a version of graphql that doesn't support the Interface1 & Interface2 SDL syntax, and also it brings in a dated version of Apollo too. I'm using Yarn's resolutions to push the requirements of:

    "apollo-client": "^1.1"
    "graphql": ">=0.9.4 <0.11"

up to:

    "apollo-client": "2.3.5",
    "graphql": "0.13.2"

and for my use case, it seems to work fine.

@bessey
Copy link
Author

bessey commented Jul 27, 2018

Also, could you make apollo-client a peer dependency? Only the network interface needs it and I'm going to guess not many people are using that feature

@evans
Copy link

evans commented Jul 27, 2018

@bessey Thanks for openning an issue! I'm curious what you're using the query extraction for?

Also as a heads up, we're close to deprecating this package in favor of the apollo-cli, so your best bet would be to use that. It can generate types and extract queries with something like apollo codegen:generate --schema=schema.json --queries="test.graphql" foo.json

@evans
Copy link

evans commented Jul 27, 2018

#67 for reference

@bessey
Copy link
Author

bessey commented Jul 28, 2018 via email

@bessey
Copy link
Author

bessey commented Aug 5, 2018

FYI I got around to writing up my use case, just in case you were interested in more details
https://bessey.io/blog/2018/08/05/apollo-graphql-prefetching/

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

No branches or pull requests

2 participants