apollographql / apollo-feature-requests

🧑‍🚀 Apollo Client Feature Requests | (no 🐛 please).
Other
130 stars 7 forks source link

Suggest graphql-tag.macro in examples #147

Open acao opened 6 years ago

acao commented 6 years ago

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?

acao commented 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!

acao commented 6 years ago

It looks like this has landed in the docs for create-react-app 2.x, so they are suggesting using it alongside graphql-tag

https://github.com/facebook/create-react-app/pull/5481