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

Send GraphQLError to client during processGraphQLRequestBody hook #491

Closed
wants to merge 7 commits into from
Closed

Send GraphQLError to client during processGraphQLRequestBody hook #491

wants to merge 7 commits into from

Conversation

Dodobibi
Copy link
Contributor

@Dodobibi Dodobibi commented Aug 24, 2023

If a SafeError is raised in the execution of the GraphQLProcessRequestBody hook, this error must be returned to the client (web request or ws subscription), as well as stopping the query execution flow.
Especially in subscription-ws, where the connection is closed abruptly.

grafast/grafserv/src/middleware/graphql.ts Outdated Show resolved Hide resolved
grafast/grafserv/src/utils.ts Outdated Show resolved Hide resolved
@benjie
Copy link
Member

benjie commented Sep 1, 2023

Rebased on latest main (with all the dependency updates from #496)

Copy link
Member

@benjie benjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting closer!

grafast/grafserv/src/middleware/graphql.ts Outdated Show resolved Hide resolved
grafast/grafserv/src/middleware/graphql.ts Outdated Show resolved Hide resolved
grafast/grafserv/src/utils.ts Outdated Show resolved Hide resolved
@benjie
Copy link
Member

benjie commented Oct 3, 2023

Migrated to graphile/crystal#1781

@benjie benjie closed this Oct 3, 2023
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 this pull request may close these issues.

2 participants