15553 change graphql sub-queries from functions to types (#15557)

* 15553 change graphql list to types

* 15553 review changes
This commit is contained in:
Arthur Hanson
2024-03-29 11:54:31 -07:00
committed by GitHub
parent c8d288671e
commit 8767577ecd
14 changed files with 226 additions and 799 deletions

View File

@@ -29,6 +29,4 @@ class DataFileType(BaseObjectType):
)
class DataSourceType(NetBoxObjectType):
@strawberry_django.field
def datafiles(self) -> List[Annotated["DataFileType", strawberry.lazy('core.graphql.types')]]:
return self.datafiles.all()
datafiles: List[Annotated["DataFileType", strawberry.lazy('core.graphql.types')]]