The return value from a graphql({query}) call when query is a subscription.
// |-- You are here // v constsubResult: GraphqlSubscriptionResult<T> = client.graphql({ query:onCreateWidget });
constsub = subResult.subscribe({ // // |-- You are here // v next(message: GraphqlSubscriptionMessage<OnCreateWidgetSubscription>) { handle(message.value); // <-- type OnCreateWidgetSubscription } })
The return value from a
graphql({query})
call whenquery
is a subscription.