GraphQL: Create dedicated top-level filter for sidebar categories (#20353)

We add the excludeTeam switch to allow user to get
all sidebar categories from other teams excluding a given team.

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2022-06-28 20:28:50 +05:30
коммит произвёл GitHub
родитель ade2271442
Коммит bd6acf04a9
23 изменённых файлов: 724 добавлений и 280 удалений

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

@@ -26,7 +26,8 @@ type Query {
after: String = "",
lastUpdateAt: Float = 0): [ChannelMember]!
sidebarCategories(userId: String!,
teamId: String!): [SidebarCategory]!
teamId: String!,
excludeTeam: Boolean = false): [SidebarCategory]!
}
scalar ChannelType
@@ -158,7 +159,6 @@ type TeamMember {
schemeGuest: Boolean!
schemeUser: Boolean!
schemeAdmin: Boolean!
sidebarCategories: [SidebarCategory]!
}
type SidebarCategory {
@@ -168,6 +168,7 @@ type SidebarCategory {
displayName: String!
muted: Boolean!
collapsed: Boolean!
teamId: String!
channelIds: [String!]!
}