feat: update schema

This commit is contained in:
dettlaff 2024-12-13 06:40:11 +04:00
parent 2cb7804ba6
commit edfe82ac28

View file

@ -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.api_queries import Api
from selfprivacy_api.graphql.queries.backup import Backup 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.jobs import Job
from selfprivacy_api.graphql.queries.logs import LogEntry, Logs from selfprivacy_api.graphql.queries.logs import LogEntry, Logs
from selfprivacy_api.graphql.queries.services import Services from selfprivacy_api.graphql.queries.services import Services
@ -74,6 +75,11 @@ class Query:
"""Users queries""" """Users queries"""
return Users() return Users()
@strawberry.field(permission_classes=[IsAuthenticated])
def groups(self) -> Groups:
"""Users queries"""
return Groups()
@strawberry.field(permission_classes=[IsAuthenticated]) @strawberry.field(permission_classes=[IsAuthenticated])
def storage(self) -> Storage: def storage(self) -> Storage:
"""Storage queries""" """Storage queries"""