diff --git a/kdb-bot/src/bot_graphql/graphql_module.py b/kdb-bot/src/bot_graphql/graphql_module.py index 9552d6a7..2ce333db 100644 --- a/kdb-bot/src/bot_graphql/graphql_module.py +++ b/kdb-bot/src/bot_graphql/graphql_module.py @@ -14,9 +14,14 @@ from bot_graphql.filter.client_filter import ClientFilter from bot_graphql.filter.level_filter import LevelFilter from bot_graphql.filter.server_filter import ServerFilter from bot_graphql.filter.user_filter import UserFilter +from bot_graphql.filter.user_joined_server_filter import UserJoinedServerFilter +from bot_graphql.filter.user_joined_voice_channel_filter import UserJoinedVoiceChannelFilter from bot_graphql.graphql_service import GraphQLService from bot_graphql.mutation import Mutation +from bot_graphql.mutations.auto_role_mutation import AutoRoleMutation +from bot_graphql.mutations.auto_role_rule_mutation import AutoRoleRuleMutation from bot_graphql.mutations.level_mutation import LevelMutation +from bot_graphql.mutations.user_mutation import UserMutation from bot_graphql.queries.auto_role_query import AutoRoleQuery from bot_graphql.queries.auto_role_rule_query import AutoRoleRuleQuery from bot_graphql.queries.client_query import ClientQuery @@ -42,16 +47,15 @@ class GraphQLModule(ModuleABC): services.add_singleton(GraphQLService) services.add_singleton(Query) services.add_singleton(Mutation) - services.add_transient(QueryABC, ServerQuery) + services.add_transient(QueryABC, AutoRoleQuery) + services.add_transient(QueryABC, AutoRoleRuleQuery) + services.add_transient(QueryABC, ClientQuery) services.add_transient(QueryABC, KnownUserQuery) services.add_transient(QueryABC, LevelQuery) - services.add_transient(QueryABC, LevelMutation) - services.add_transient(QueryABC, ClientQuery) + services.add_transient(QueryABC, ServerQuery) services.add_transient(QueryABC, UserQuery) services.add_transient(QueryABC, UserJoinedServerQuery) services.add_transient(QueryABC, UserJoinedVoiceChannelQuery) - services.add_transient(QueryABC, AutoRoleQuery) - services.add_transient(QueryABC, AutoRoleRuleQuery) services.add_singleton(FilterABC, AutoRoleFilter) services.add_singleton(FilterABC, AutoRoleRuleFilter) @@ -59,5 +63,12 @@ class GraphQLModule(ModuleABC): services.add_singleton(FilterABC, LevelFilter) services.add_singleton(FilterABC, ServerFilter) services.add_singleton(FilterABC, UserFilter) + services.add_singleton(FilterABC, UserJoinedServerFilter) + services.add_singleton(FilterABC, UserJoinedVoiceChannelFilter) + + services.add_transient(QueryABC, AutoRoleMutation) + services.add_transient(QueryABC, AutoRoleRuleMutation) + services.add_transient(QueryABC, LevelMutation) + services.add_transient(QueryABC, UserMutation) services.add_transient(SeederService)