1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Files
netbox-community-netbox/netbox/users/graphql/schema.py
2023-08-24 14:54:24 -07:00

16 lines
408 B
Python

from typing import List
import strawberry
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from .types import *
@strawberry.type
class UsersQuery:
group: GroupType = strawberry.django.field()
group_list: List[GroupType] = strawberry.django.field()
user: UserType = strawberry.django.field()
user_list: List[UserType] = strawberry.django.field()