Upload files to "dnac_integration"
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from graphene import ObjectType
|
||||
from netbox.graphql.types import NetBoxObjectType
|
||||
from netbox.graphql.fields import ObjectField, ObjectListField
|
||||
from . import filtersets, models
|
||||
|
||||
class dnacServerType(NetBoxObjectType):
|
||||
class Meta:
|
||||
model = models.dnacServer
|
||||
fields = '__all__'
|
||||
|
||||
class Query(ObjectType):
|
||||
dnacServer = ObjectField(dnacServerType)
|
||||
dnacServer_list = ObjectListField(dnacServerType)
|
||||
|
||||
schema = Query
|
||||
Reference in New Issue
Block a user