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 09:11:23 -07:00

17 lines
471 B
Python

from typing import List
import strawberry
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from netbox.graphql.fields import ObjectField, ObjectListField
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()