selfprivacy-rest-api/selfprivacy_api/graphql/queries/groups.py

19 lines
387 B
Python
Raw Normal View History

2024-12-12 19:53:41 +00:00
"""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
)