fix(subs): remove redundant stream sub defs
This commit is contained in:
@@ -88,7 +88,9 @@ extend type Subscription {
|
||||
"""
|
||||
Subscribes to new stream created event for a given user.
|
||||
"""
|
||||
userStreamCreated( ownerId: String! ): JSONObject @hasRole(role: "server:user") @hasScope(scope: "profile:read")
|
||||
userStreamCreated( ownerId: String! ): JSONObject
|
||||
@hasRole(role: "server:user")
|
||||
@hasScope(scope: "profile:read")
|
||||
|
||||
# Source:
|
||||
# - stream delete mutation (target: all stream users in acl)
|
||||
@@ -98,21 +100,15 @@ extend type Subscription {
|
||||
"""
|
||||
Subscribes to stream deleted event for a given user.
|
||||
"""
|
||||
userStreamCreated( ownerId: String! ): JSONObject
|
||||
# TODO: how should auth be enforced for this?
|
||||
userStreamDeleted( ownerId: String! ): JSONObject
|
||||
@hasRole(role: "server:user")
|
||||
@hasScope(scope: "profile:read")
|
||||
"""
|
||||
Subscribes to stream updated event.
|
||||
"""
|
||||
streamUpdated( streamId: String! ): JSONObject
|
||||
@hasRole(role: "server:user")
|
||||
"""
|
||||
Subscribes to stream deleted event. (do we want this for streamId?)
|
||||
"""
|
||||
userStreamDeleted( ownerId: String! ): JSONObject
|
||||
# TODO: how should auth be enforced for this?
|
||||
@hasRole(role: "server:user")
|
||||
"""
|
||||
Subscribes to stream permission granted event.
|
||||
"""
|
||||
streamPermissionGranted( userId: String! ): JSONObject
|
||||
|
||||
Reference in New Issue
Block a user