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 b75d4b3c9b
commit cc979e110f
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]