graphql-to-dart
graphql-to-dart copied to clipboard
Discussion: Bake gql inside of a more global operation class
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.
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