schema.py 987 B

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