GraphqlWsExtraType
The
extra
of every subscription event, received by
listen
callbacks next to the
data
.
Import
import { GraphqlWsExtraType } from "@hyper-fetch/graphql"
Source
Package
Preview
type GraphqlWsExtraType = {
errors?: GraphQLFormattedError[];
extensions: Record<string, unknown>;
payload: unknown;
}
Structure
GraphqlWsExtraType
| Name | Type | Description |
|---|---|---|
| errors | | Errors of the event. The server sends them next to the
A subscription the server can't execute at all, e.g. with missing variables, gets one event with these errors and
|
| extensions | | The
|
| payload | | Variables of the subscription the event belongs to. Listeners of one topic with other variables are separate
subscriptions, so it tells them apart where events of every subscription meet, like
|
