mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
13 lines
333 B
Python
13 lines
333 B
Python
import graphene
|
|
|
|
from netbox.graphql.fields import ObjectField, ObjectListField
|
|
from .types import *
|
|
|
|
|
|
class TenancyQuery(graphene.ObjectType):
|
|
tenant = ObjectField(TenantType)
|
|
tenant_list = ObjectListField(TenantType)
|
|
|
|
tenant_group = ObjectField(TenantGroupType)
|
|
tenant_group_list = ObjectListField(TenantGroupType)
|