Cancelling a GraphQL Subscription

Viewed 78

Is there a way to cancel a GraphQL subscription by sending an unsubscribe method?

For example if I send a subscription request as follows —

subscription votes($user: user) {
  count
}

How can I now cancel this request?

NOTE: I want to unsubscribe without closing the underlying connection.

0 Answers
Related