Open acao opened 6 years ago
Oops! I see now that the macro leverages graphql-tag
itself. It could still be added to docs and examples, however. I'll update the title and description, maybe a PR soon!
It looks like this has landed in the docs for create-react-app
2.x, so they are suggesting using it alongside graphql-tag
Just saw this repository that leverages the babel runtime to generate graphql AST at transpile time instead of parsing it always in the client runtime: https://github.com/leoasis/graphql-tag.macro
Possibly this should be reccomended for applications with many complex queries? Maybe an example and/or some documentation entries? Possibly even replacing
graphql-tag
with this in the long run?