schema.py 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. from typing import List
  2. import strawberry
  3. import strawberry_django
  4. from .types import *
  5. @strawberry.type(name="Query")
  6. class ExtrasQuery:
  7. config_context: ConfigContextType = strawberry_django.field()
  8. config_context_list: List[ConfigContextType] = strawberry_django.field()
  9. config_template: ConfigTemplateType = strawberry_django.field()
  10. config_template_list: List[ConfigTemplateType] = strawberry_django.field()
  11. custom_field: CustomFieldType = strawberry_django.field()
  12. custom_field_list: List[CustomFieldType] = strawberry_django.field()
  13. custom_field_choice_set: CustomFieldChoiceSetType = strawberry_django.field()
  14. custom_field_choice_set_list: List[CustomFieldChoiceSetType] = strawberry_django.field()
  15. custom_link: CustomLinkType = strawberry_django.field()
  16. custom_link_list: List[CustomLinkType] = strawberry_django.field()
  17. export_template: ExportTemplateType = strawberry_django.field()
  18. export_template_list: List[ExportTemplateType] = strawberry_django.field()
  19. image_attachment: ImageAttachmentType = strawberry_django.field()
  20. image_attachment_list: List[ImageAttachmentType] = strawberry_django.field()
  21. saved_filter: SavedFilterType = strawberry_django.field()
  22. saved_filter_list: List[SavedFilterType] = strawberry_django.field()
  23. journal_entry: JournalEntryType = strawberry_django.field()
  24. journal_entry_list: List[JournalEntryType] = strawberry_django.field()
  25. notification: NotificationType = strawberry_django.field()
  26. notification_list: List[NotificationType] = strawberry_django.field()
  27. notification_group: NotificationGroupType = strawberry_django.field()
  28. notification_group_list: List[NotificationGroupType] = strawberry_django.field()
  29. subscription: SubscriptionType = strawberry_django.field()
  30. subscription_list: List[SubscriptionType] = strawberry_django.field()
  31. tag: TagType = strawberry_django.field()
  32. tag_list: List[TagType] = strawberry_django.field()
  33. webhook: WebhookType = strawberry_django.field()
  34. webhook_list: List[WebhookType] = strawberry_django.field()
  35. event_rule: EventRuleType = strawberry_django.field()
  36. event_rule_list: List[EventRuleType] = strawberry_django.field()