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

[v3] Persisted operations - how can I customize the not found error #2047

Closed
Tracked by #2700 ...
n1ru4l opened this issue Nov 8, 2022 · 0 comments · Fixed by #2728
Closed
Tracked by #2700 ...

[v3] Persisted operations - how can I customize the not found error #2047

n1ru4l opened this issue Nov 8, 2022 · 0 comments · Fixed by #2728
Milestone

Comments

@n1ru4l
Copy link
Collaborator

n1ru4l commented Nov 8, 2022

The errors thrown are hardcoded:

throw createGraphQLError('PersistedQueryOnly')

throw createGraphQLError('PersistedQueryNotFound')

throw createGraphQLError('PersistedQueryNotFound')

There is currently no way to customize this part of the protocol - e.g. use a custom status code or different error format or even extensions.

@n1ru4l n1ru4l added this to the v3 milestone Nov 8, 2022
@theguild-bot theguild-bot mentioned this issue Nov 8, 2022
This was referenced May 7, 2024
This was referenced May 23, 2024
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

Successfully merging a pull request may close this issue.

2 participants
@n1ru4l and others