babel-plugin-graphql-tag
babel-plugin-graphql-tag copied to clipboard
Query (document) hash for persisted queries.
I'm trying to implement https://github.com/leoasis/graphql-persisted-document-loader in my React Application.
With your plugin everything works good, beautiful! But with graphql-persisted-document-loader
is a little bit a mess (in React).
I was wondering if you can add a simple "documentHash" or "documentID" or "queryHash" (maybe also using that package) for the hash of the query useful for persisted GraphQL queries.
Is this difficult?
Can you see the positive sides of this feature?
You can generate a hash in transform
function and attach it to the document. I did this and it works