Files
netbox/netbox/tenancy/graphql/schema.py
Martin Hauser 1b295f1d69
CI / build (20.x, 3.12) (push) Failing after 55s
CI / build (20.x, 3.13) (push) Failing after 17s
CI / build (20.x, 3.14) (push) Failing after 11s
CodeQL / Analyze (actions) (push) Failing after 25s
CodeQL / Analyze (javascript-typescript) (push) Failing after 50s
CodeQL / Analyze (python) (push) Failing after 48s
Closes #21473: Enable UP rules and modernize string formatting (#21488)
2026-02-19 10:25:08 -06:00

26 lines
921 B
Python

import strawberry
import strawberry_django
from .types import *
@strawberry.type(name="Query")
class TenancyQuery:
tenant: TenantType = strawberry_django.field()
tenant_list: list[TenantType] = strawberry_django.field()
tenant_group: TenantGroupType = strawberry_django.field()
tenant_group_list: list[TenantGroupType] = strawberry_django.field()
contact: ContactType = strawberry_django.field()
contact_list: list[ContactType] = strawberry_django.field()
contact_role: ContactRoleType = strawberry_django.field()
contact_role_list: list[ContactRoleType] = strawberry_django.field()
contact_group: ContactGroupType = strawberry_django.field()
contact_group_list: list[ContactGroupType] = strawberry_django.field()
contact_assignment: ContactAssignmentType = strawberry_django.field()
contact_assignment_list: list[ContactAssignmentType] = strawberry_django.field()