graphql: Add channel stats under channel (#19804)

* graphql: Add channel stats under channel

* add permission check
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-03-25 11:59:57 +03:00
коммит произвёл GitHub
родитель a9e21fcaf1
Коммит 3e8b81c0c7
4 изменённых файлов: 90 добавлений и 1 удалений

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

@@ -52,6 +52,7 @@ type Channel {
shared: Boolean
lastPostAt: Float!
totalMsgCount: Float!
stats: ChannelStats
cursor: String
}
@@ -170,4 +171,11 @@ type Session {
token: String!
createAt: Float!
expiresAt: Float!
}
}
type ChannelStats {
channelId: String!
memberCount: Float!
guestCount: Float!
pinnedPostCount: Float!
}