1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

9856 update types

This commit is contained in:
Arthur
2024-02-23 14:36:41 -08:00
parent a5445bb61a
commit 69134dbb50
5 changed files with 160 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
from typing import Annotated, List
import strawberry
import strawberry_django
@@ -27,4 +29,7 @@ class DataFileType(BaseObjectType):
filters=DataSourceFilter
)
class DataSourceType(NetBoxObjectType):
pass
@strawberry_django.field
def datafiles(self) -> List[Annotated["DataFileType", strawberry.lazy('core.graphql.types')]]:
return self.datafiles.all()