babel-plugin-graphql-tag icon indicating copy to clipboard operation
babel-plugin-graphql-tag copied to clipboard

Query (document) hash for persisted queries.

Open frederikhors opened this issue 5 years ago • 1 comments

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?

frederikhors avatar Sep 12 '18 21:09 frederikhors

You can generate a hash in transform function and attach it to the document. I did this and it works

stalniy avatar Feb 19 '21 16:02 stalniy