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

Discussion: Bake gql inside of a more global operation class #28

Open
ryankauk opened this issue Jan 9, 2020 · 1 comment
Open

Discussion: Bake gql inside of a more global operation class #28

ryankauk opened this issue Jan 9, 2020 · 1 comment

Comments

@ryankauk
Copy link
Contributor

ryankauk commented Jan 9, 2020

If you create the gql right into the class (similar to apollo-angular), you would not need to import the gql files during runtime and also just bake the fragments into each document.

@micimize
Copy link
Owner

right now there is an integrateGqlCodeGenAst: true option which will reexport the built asts from gql_code_gen, but yeah it would be ideal to have an option to add the original query on the class. This shouldn't be too difficult for operation classes actually

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