Skip to content

Commit 3d34180

Browse files
authored
Merge pull request #262 from pheus/feature/252-allow-query-for-related-rules-in-graphql
Closes #252 - Add related Rule Queries to AccessListType
2 parents ed73288 + a978d1c commit 3d34180

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

netbox_acls/graphql/types.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ class AccessListType(NetBoxObjectType):
3333
strawberry.union("ACLAssignmentType"),
3434
]
3535

36+
# Related models
37+
aclstandardrules: List[
38+
Annotated[
39+
"ACLStandardRuleType",
40+
strawberry.lazy("netbox_acls.graphql.types"),
41+
]
42+
]
43+
aclextendedrules: List[
44+
Annotated[
45+
"ACLExtendedRuleType",
46+
strawberry.lazy("netbox_acls.graphql.types"),
47+
]
48+
]
49+
3650

3751
@strawberry_django.type(
3852
models.ACLInterfaceAssignment,

0 commit comments

Comments
 (0)