Subscriptions
Subscriptions can be used along with @auth
, however, some operations are not supported. To setup rules,
use the SUBSCRIBE
operation.
type Movie {
title: String!
}
extend type Movie @auth(rules: [{ isAuthenticated: true, operations: [SUBSCRIBE] }])
Authentication
If the authentication rules isAuthenticated
and allowUnauthenticated
are not met, the subscription request will fail and no events will
be sent.
Was this page helpful?