-
Notifications
You must be signed in to change notification settings - Fork 4
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
Persisted operations + GCS integration improvements #13
Conversation
…operationName at hand and sending an empty string towards our upstream results in an error. For now we just delete until we learn why we need it
…rsisted queries files Introduce specific parsing of apollo-persisted-query-manifest
What is the need for implementing https://www.apollographql.com/docs/react/api/link/persisted-queries/ the Apollo Persisted Queries manifest? It's a proprietary format only supported by the Apollo Router and |
Let me work on the failing tests |
If you check out the following resources these expect & generate perstisted operations in the already implemented https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#persisted-documents |
The problem with that is that the hashes generated by the tooling above dont seem to match the hashes that apollo seemed to generated. Most likely due to new lines added in places and we didnt want to go there to fix it. Which is why we opted for this approach. Another solution however (and i think more in line with your view) would be to do some pre-processing before pushing it to the bucket so that we have a hash,query pair like you described above, without any formatting leaking into this project. Which might be the nicer option as it also gives us the freedom to use whatever client we want as long as the generated hashes match what a client sends. Thoughts? |
Yes I do prefer the simpler non-vendor option of |
Could you add a description to your MR and update the title as it no longer touches Persisted Ops in that sense. That way it'll show up correctly on the generated changelog |
sure thing, will look into that tomorrow! |
Perfect, thanks for your contribution @rickbijkerk ! |
A MR with small tweaks i had to do to make persisted operations work together with a GCS bucket changes include: - No longer forwarding 'operationName' - Minor tweaks in documentation regarding fetching from GCS bucket - Properly reading the gcs downloaded files from disk by including the directory --------- Co-authored-by: Rick Bijkerk <[email protected]>
A MR with small tweaks i had to do to make persisted operations work together with a GCS bucket
changes include: