1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00: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:
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

@@ -34,6 +34,4 @@ class GroupType:
filters=UserFilter
)
class UserType:
@strawberry_django.field
def groups(self) -> List[GroupType]:
return self.groups.all()
groups: List[GroupType]