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

feat: implemented persisted queries for GET methods with only SHA-256 hash of query string #2067

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

malaquf
Copy link

@malaquf malaquf commented Dec 30, 2024

📝 Description

According to the GraphQL APQ flow description, GET requests containing only SHA-256 hash of the query should be checked in cache and respond with PERSISTED_QUERY_NOT_FOUND error if request is not cached.
Both Ktor and Spring server implementations didn't handle this first query without a query param.
I tried to implement the change without breaking existing behaviours, as a query param is expected to take precedence over post body, for example, as in one of the tests in RouteConfigurationIT.

🔗 Related Issues

#2065

@malaquf malaquf force-pushed the feat/8.x.x/implement-persisted-queries-get-method branch from 410f4c8 to af5cc5c Compare December 31, 2024 13:09
@malaquf malaquf force-pushed the feat/8.x.x/implement-persisted-queries-get-method branch from af5cc5c to f9b857f Compare December 31, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant