graphql: Add channel stats under channel (#19804)
* graphql: Add channel stats under channel * add permission check
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a9e21fcaf1
Коммит
3e8b81c0c7
@@ -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!
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user