mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-18 10:16:34 +00:00
13 lines
289 B
Python
13 lines
289 B
Python
import graphene
|
|
|
|
from netbox.graphql.fields import ObjectField, ObjectListField
|
|
from .types import *
|
|
|
|
|
|
class UsersQuery(graphene.ObjectType):
|
|
group = ObjectField(GroupType)
|
|
groups = ObjectListField(GroupType)
|
|
|
|
user = ObjectField(UserType)
|
|
users = ObjectListField(UserType)
|