selfprivacy-rest-api/selfprivacy_api/graphql/queries/groups.py
2024-12-13 00:01:18 +04:00

19 lines
387 B
Python

"""Groups"""
# pylint: disable=too-few-public-methods
import typing
import strawberry
from selfprivacy_api.graphql.common_types.groups import (
Group,
get_groups,
)
from selfprivacy_api.graphql import IsAuthenticated
@strawberry.type
class Groups:
all_groups: typing.List[Group] = strawberry.field(
permission_classes=[IsAuthenticated], resolver=get_groups
)