Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query (document) hash for persisted queries. #22

Open
frederikhors opened this issue Sep 12, 2018 · 1 comment
Open

Query (document) hash for persisted queries. #22

frederikhors opened this issue Sep 12, 2018 · 1 comment

Comments

@frederikhors
Copy link

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?

@stalniy
Copy link

stalniy commented Feb 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants