Skip to content

[Question] How would you send properly send error for GQL Subcriptions #1104

@Moonnz

Description

@Moonnz

Hello :)

I've been using Mercurius with NestJS without any issues until now. However, as I'm implementing a subscription, I'm finding it challenging to properly send errors through the subscription WebSocket in accordance with the graphql-ws protocol.

I haven't been able to find any resources on this within the NestJS ecosystem, and it seems there isn't much available within the Mercurius ecosystem either.

Has anyone here managed to handle this or encountered something similar? Any relevant insights would be greatly appreciated!

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