GraphQL: Remove channel stats from the API (#21377)

Channel Stats isn't optimized with dataloaders.

And it's a heavy call, therefore clients
can mistakenly call this with multiple channels
and bring down the server.

Since there is no advantage compared to a REST API,
let's just remove it and keep things safe.

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2022-10-14 14:17:43 +05:30
коммит произвёл GitHub
родитель d96516acd9
Коммит c57706e6f4
3 изменённых файлов: 0 добавлений и 77 удалений

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

@@ -62,7 +62,6 @@ type Channel {
totalMsgCount: Float!
totalMsgCountRoot: Float!
lastRootPostAt: Float!
stats: ChannelStats
extraUpdateAt: Float!
props: StringInterface!
policyId: String
@@ -220,10 +219,3 @@ type Session {
props: StringMap!
local: Boolean!
}
type ChannelStats {
channelId: String!
memberCount: Float!
guestCount: Float!
pinnedPostCount: Float!
}