mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-21 21:02:23 -06:00
15553 change graphql sub-queries from functions to types (#15557)
* 15553 change graphql list to types * 15553 review changes
This commit is contained in:
@@ -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')]]
|
||||
|
||||
Reference in New Issue
Block a user