1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

13 lines
297 B
Python
Raw Normal View History

2021-06-29 13:15:10 -04:00
import graphene
from netbox.graphql.fields import ObjectField, ObjectListField
from .types import *
class UsersQuery(graphene.ObjectType):
group = ObjectField(GroupType)
group_list = ObjectListField(GroupType)
2021-06-29 13:15:10 -04:00
user = ObjectField(UserType)
user_list = ObjectListField(UserType)