-
Notifications
You must be signed in to change notification settings - Fork 17
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
Is there a way to make this work with apollo generate:codegen
?
#9
Comments
Maybe if codegen support |
@vjpr I intend to re-write to work with graphql codegen - which I think wraps apollo generate:codegen. |
Any news on this? |
up |
Check your includes path like: |
I wonder if apollo codegen can reference fragments from its schema so we don't need the import?
This issue means having to choose between templated gql queries or query type generation.
graphql-cli-generate-fragments
may still be useful for copy-pasting in the generated fragments instead of having to type them.And maybe its better to keep gql queries static so IDE integrations can work properly. Although the Apollo docs suggest importing fragments into your queries here: https://www.apollographql.com/docs/react/advanced/fragments.html.
The text was updated successfully, but these errors were encountered: