Added more gql filters #162
This commit is contained in:
parent
16066864ed
commit
dbfae8d8a4
@ -10,4 +10,11 @@ type AutoRole implements TableQuery {
|
|||||||
|
|
||||||
created_at: String
|
created_at: String
|
||||||
modified_at: String
|
modified_at: String
|
||||||
|
}
|
||||||
|
|
||||||
|
input AutoRoleFilter {
|
||||||
|
id: ID
|
||||||
|
channel_id: String
|
||||||
|
message_id: String
|
||||||
|
server: ServerFilter
|
||||||
}
|
}
|
@ -7,4 +7,11 @@ type AutoRoleRule implements TableQuery {
|
|||||||
|
|
||||||
created_at: String
|
created_at: String
|
||||||
modified_at: String
|
modified_at: String
|
||||||
|
}
|
||||||
|
|
||||||
|
input AutoRoleRuleFilter {
|
||||||
|
id: ID
|
||||||
|
emoji_name: String
|
||||||
|
role_id: String
|
||||||
|
auto_role: AutoRoleFilter
|
||||||
}
|
}
|
@ -12,4 +12,16 @@ type Client implements TableQuery {
|
|||||||
|
|
||||||
created_at: String
|
created_at: String
|
||||||
modified_at: String
|
modified_at: String
|
||||||
|
}
|
||||||
|
|
||||||
|
input ClientFilter {
|
||||||
|
id: ID
|
||||||
|
discord_id: String
|
||||||
|
name: String
|
||||||
|
sent_message_count: Int
|
||||||
|
received_message_count: Int
|
||||||
|
deleted_message_count: Int
|
||||||
|
received_command_count: Int
|
||||||
|
moved_users_count: Int
|
||||||
|
server: ServerFilter
|
||||||
}
|
}
|
@ -1,11 +1,11 @@
|
|||||||
type Query {
|
type Query {
|
||||||
auto_roles: [AutoRole]
|
auto_roles(filter: AutoRoleFilter, page: Page, sort: Sort): [AutoRole]
|
||||||
auto_role_count: Int
|
auto_role_count: Int
|
||||||
|
|
||||||
auto_role_rules: [AutoRole]
|
auto_role_rules(filter: AutoRoleRuleFilter, page: Page, sort: Sort): [AutoRole]
|
||||||
auto_role_rule_count: Int
|
auto_role_rule_count: Int
|
||||||
|
|
||||||
clients: [Client]
|
clients(filter: ClientFilter, page: Page, sort: Sort): [Client]
|
||||||
client_count: Int
|
client_count: Int
|
||||||
|
|
||||||
known_users: [KnownUser]
|
known_users: [KnownUser]
|
||||||
@ -17,10 +17,10 @@ type Query {
|
|||||||
servers(filter: ServerFilter, page: Page, sort: Sort): [Server]
|
servers(filter: ServerFilter, page: Page, sort: Sort): [Server]
|
||||||
server_count: Int
|
server_count: Int
|
||||||
|
|
||||||
user_joined_servers: [User]
|
user_joined_servers(filter: UserJoinedServerFilter, page: Page, sort: Sort): [User]
|
||||||
user_joined_server_count: Int
|
user_joined_server_count: Int
|
||||||
|
|
||||||
user_joined_voice_channels: [User]
|
user_joined_voice_channels(filter: UserJoinedVoiceChannelFilter, page: Page, sort: Sort): [User]
|
||||||
user_joined_voice_channel_count: Int
|
user_joined_voice_channel_count: Int
|
||||||
|
|
||||||
users(filter: UserFilter, page: Page, sort: Sort): [User]
|
users(filter: UserFilter, page: Page, sort: Sort): [User]
|
||||||
|
@ -7,4 +7,12 @@ type UserJoinedServer implements TableQuery {
|
|||||||
|
|
||||||
created_at: String
|
created_at: String
|
||||||
modified_at: String
|
modified_at: String
|
||||||
|
}
|
||||||
|
|
||||||
|
input UserJoinedServerFilter {
|
||||||
|
id: ID
|
||||||
|
user: UserFilter
|
||||||
|
server: ServerFilter
|
||||||
|
joined_on: String
|
||||||
|
leaved_on: String
|
||||||
}
|
}
|
@ -8,4 +8,13 @@ type UserJoinedVoiceChannel implements TableQuery {
|
|||||||
|
|
||||||
created_at: String
|
created_at: String
|
||||||
modified_at: String
|
modified_at: String
|
||||||
|
}
|
||||||
|
|
||||||
|
input UserJoinedVoiceChannelFilter {
|
||||||
|
id: ID
|
||||||
|
channel_id: String
|
||||||
|
user: UserFilter
|
||||||
|
server: ServerFilter
|
||||||
|
joined_on: String
|
||||||
|
leaved_on: String
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user