瀏覽代碼

Added the cable -> CableType-Annotation in CableTerminationType.

Kay Schroeder 1 年之前
父節點
當前提交
382e246b2c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netbox/dcim/graphql/types.py

+ 1 - 1
netbox/dcim/graphql/types.py

@@ -116,7 +116,7 @@ class ModularComponentTemplateType(ComponentTemplateType):
     filters=CableTerminationFilter
 )
 class CableTerminationType(NetBoxObjectType):
-
+    cable: Annotated["CableType", strawberry.lazy('dcim.graphql.types')] | None
     termination: Annotated[Union[
         Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')],
         Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')],