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

GraphQL Subscriptions should handle errors in the source stream #1126

Closed
wants to merge 1 commit into from

Conversation

benjie
Copy link
Member

@benjie benjie commented Nov 21, 2024

Currently if sourceStream generates an error, then responseStream repeats the error. This is the behavior implemented in graphql-js and is problematic.

GraphQL captures execution errors and wraps them in an { errors: [...] } payload for query and mutation operations; it should do the same for stream errors in a subscription operation.

This PR makes this behavior explicit.

Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for graphql-spec-draft ready!

Name Link
🔨 Latest commit d36099a
🔍 Latest deploy log https://app.netlify.com/sites/graphql-spec-draft/deploys/673f4998ecca960007eb6f25
😎 Deploy Preview https://deploy-preview-1126--graphql-spec-draft.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@benjie
Copy link
Member Author

benjie commented Nov 21, 2024

Closing in favour of #1127

@benjie benjie closed this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 Strawman (RFC 0) RFC Stage 0 (See CONTRIBUTING.md)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant