strawberry-django
strawberry-django copied to clipboard
GenericRelation not supported?
Hi,
It seems that Django GenericRelation isn't handled correctly. Using @straberry_django.type
decorator with one of my models results in a KeyError: <class 'django.contrib.contenttypes.fields.GenericRelation'>
and it's missing in the field_type_map
in strawberry_django.fields.types
.
My current workaround is to define a field with a custom resolver.
Am I missing something and if not is there any plan to support this type of field?
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
We haven't looked at GenericRelation
which means that it is not supported yet. Would you like to contribute? :)