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

16 lines
408 B
Python
Raw Normal View History

2023-08-24 09:11:23 -07:00
from typing import List
import strawberry
2021-06-29 13:15:10 -04:00
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
2021-06-29 13:15:10 -04:00
from .types import *
2023-08-24 09:11:23 -07:00
@strawberry.type
class UsersQuery:
group: GroupType = strawberry.django.field()
group_list: List[GroupType] = strawberry.django.field()
2021-06-29 13:15:10 -04:00
2023-08-24 09:11:23 -07:00
user: UserType = strawberry.django.field()
user_list: List[UserType] = strawberry.django.field()