mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
22 lines
429 B
Python
22 lines
429 B
Python
import graphene
|
|
from graphene_django import DjangoObjectType
|
|
|
|
from netbox.graphql.fields import ObjectField, ObjectListField
|
|
|
|
from . import models
|
|
|
|
|
|
class DummyModelType(DjangoObjectType):
|
|
|
|
class Meta:
|
|
model = models.DummyModel
|
|
fields = '__all__'
|
|
|
|
|
|
class DummyQuery(graphene.ObjectType):
|
|
dummymodel = ObjectField(DummyModelType)
|
|
dummymodel_list = ObjectListField(DummyModelType)
|
|
|
|
|
|
schema = DummyQuery
|