Annotation Type Subscription
Declares a
GraphQLClient method as a GraphQL subscription,
streamed over a WebSocket using the graphql-transport-ws
protocol. The value() is the operation document and
Var-annotated parameters supply its $variables. The method takes
a trailing GraphQLSubscription.Handler<T> and returns a
GraphQLSubscription handle whose cancel() ends the stream.-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe operation name to send in thesubscribemessage'soperationNamefield.
-
Element Details
-
value
String valueThe GraphQL operation document, e.g.subscription OnReview($ep: Episode!) { reviewAdded(episode: $ep) { stars } }. -
operationName
-