docs(subs): updates schema comments to clarify userStreamCreated/Deleted re perms granted/revoked

This commit is contained in:
Dimitrie Stefanescu 2020-09-01 12:16:24 +01:00
Родитель 1f8ef39831
Коммит 33fb0fa7f7
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -79,7 +79,8 @@ extend type Subscription {
#
"""
Subscribes to new stream created event for your profile. Use this to display an up-to-date list of streams for your profile.
Subscribes to new stream created event for your profile. Use this to display an up-to-date list of streams.
**NOTE**: If someone shares a stream with you, this subscription will be triggered with an extra value of `sharedBy` in the payload.
"""
userStreamCreated: JSONObject
@hasRole(role: "server:user")
@ -87,6 +88,7 @@ extend type Subscription {
"""
Subscribes to stream deleted event for your profile. Use this to display an up-to-date list of streams for your profile.
**NOTE**: If someone revokes your permissions on a stream, this subscription will be triggered with an extra value of `revokedBy` in the payload.
"""
userStreamDeleted: JSONObject
@hasRole(role: "server:user")