The shape of messages passed to next() from a graphql subscription. E.g.,

const sub = client.graphql({
query: onCreateWidget,
}).subscribe({
//
// |-- You are here
// v
next(message: GraphqlSubscriptionMessage<OnCreateWidgetSubscription>) {
handle(message.value); // <-- type OnCreateWidgetSubscription
}
})
interface GraphqlSubscriptionMessage<T> {
    data: T;
}

Type Parameters

  • T

Properties

Properties

data: T