From edfe82ac28ac3652f7b642693594dd88b8e9f67d Mon Sep 17 00:00:00 2001 From: dettlaff Date: Fri, 13 Dec 2024 06:40:11 +0400 Subject: [PATCH] feat: update schema --- selfprivacy_api/graphql/schema.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfprivacy_api/graphql/schema.py b/selfprivacy_api/graphql/schema.py index eb94922..bc85b92 100644 --- a/selfprivacy_api/graphql/schema.py +++ b/selfprivacy_api/graphql/schema.py @@ -26,6 +26,7 @@ from selfprivacy_api.graphql.mutations.backup_mutations import BackupMutations from selfprivacy_api.graphql.queries.api_queries import Api from selfprivacy_api.graphql.queries.backup import Backup +from selfprivacy_api.graphql.queries.groups import Groups from selfprivacy_api.graphql.queries.jobs import Job from selfprivacy_api.graphql.queries.logs import LogEntry, Logs from selfprivacy_api.graphql.queries.services import Services @@ -74,6 +75,11 @@ class Query: """Users queries""" return Users() + @strawberry.field(permission_classes=[IsAuthenticated]) + def groups(self) -> Groups: + """Users queries""" + return Groups() + @strawberry.field(permission_classes=[IsAuthenticated]) def storage(self) -> Storage: """Storage queries"""