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"""