schema.py 1000 B

123456789101112131415161718192021222324252627
  1. from typing import List
  2. import strawberry
  3. import strawberry_django
  4. from circuits import models
  5. from .types import *
  6. @strawberry.type
  7. class CircuitsQuery:
  8. circuit: CircuitType = strawberry_django.field()
  9. circuit_list: List[CircuitType] = strawberry_django.field()
  10. circuit_termination: CircuitTerminationType = strawberry_django.field()
  11. circuit_termination_list: List[CircuitTerminationType] = strawberry_django.field()
  12. circuit_type: CircuitTypeType = strawberry_django.field()
  13. circuit_type_list: List[CircuitTypeType] = strawberry_django.field()
  14. provider: ProviderType = strawberry_django.field()
  15. provider_list: List[ProviderType] = strawberry_django.field()
  16. provider_account: ProviderAccountType = strawberry_django.field()
  17. provider_account_list: List[ProviderAccountType] = strawberry_django.field()
  18. provider_network: ProviderNetworkType = strawberry_django.field()
  19. provider_network_list: List[ProviderNetworkType] = strawberry_django.field()