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

Generating client side types using apollo-link-state #511

Closed
valentinbe opened this issue Aug 19, 2018 · 2 comments
Closed

Generating client side types using apollo-link-state #511

valentinbe opened this issue Aug 19, 2018 · 2 comments

Comments

@valentinbe
Copy link

Hi,
Thanks for the amazing tool.
Did anyone managed to generate client side types with part of the schema defined locally using apollo-link-state? Apollo cli handles this use case with a --clientSchema option on generation step.
For the moment I am ignoring client side schema definitions files. But limits of this workaround being that types are not generated when I write queries which fetch both client and server side defined schemas becomes increasingly frustrating.

@dotansimha
Copy link
Owner

@valentinbe, thanks for reporting it! Can you please provide an example?

@dotansimha
Copy link
Owner

At the moment, the codegen supports this use case.
You can an example in my PR for ReactQL here: leebenson/reactql#129

@valentinbe

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