Skip to content

Incorrect error message format for the graphql-ws protocol #1132

@ReneeSlamka

Description

@ReneeSlamka

Hi, I've found a gap in support for the legacy graphql-ws protocol. The spec indicates that for error messages the payload should be a single "Error" object, but currently Mercurius only adheres to the graphql-transport-ws protocol error format by always returning an array of GraphQL errors.

I realize that the graphql-ws protocol is considered deprecated, but given the docs state both are supported I think this is worth addressing. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions