schema.py 974 B

123456789101112131415161718192021222324252627282930
  1. import graphene
  2. from netbox.graphql.fields import ObjectField, ObjectListField
  3. from .types import *
  4. class ExtrasQuery(graphene.ObjectType):
  5. config_context = ObjectField(ConfigContextType)
  6. config_context_list = ObjectListField(ConfigContextType)
  7. custom_field = ObjectField(CustomFieldType)
  8. custom_field_list = ObjectListField(CustomFieldType)
  9. custom_link = ObjectField(CustomLinkType)
  10. custom_link_list = ObjectListField(CustomLinkType)
  11. export_template = ObjectField(ExportTemplateType)
  12. export_template_list = ObjectListField(ExportTemplateType)
  13. image_attachment = ObjectField(ImageAttachmentType)
  14. image_attachment_list = ObjectListField(ImageAttachmentType)
  15. journal_entry = ObjectField(JournalEntryType)
  16. journal_entry_list = ObjectListField(JournalEntryType)
  17. tag = ObjectField(TagType)
  18. tag_list = ObjectListField(TagType)
  19. webhook = ObjectField(WebhookType)
  20. webhook_list = ObjectListField(WebhookType)