graphql-to-dart icon indicating copy to clipboard operation
graphql-to-dart copied to clipboard

Discussion: Bake gql inside of a more global operation class

Open ryankauk opened this issue 5 years ago • 1 comments

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.

ryankauk avatar Jan 09 '20 01:01 ryankauk

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

micimize avatar Jan 11 '20 14:01 micimize