strawberry-django icon indicating copy to clipboard operation
strawberry-django copied to clipboard

GenericRelation not supported?

Open edouardruiz opened this issue 3 years ago • 2 comments

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.
Fund with Polar

edouardruiz avatar Aug 29 '21 09:08 edouardruiz

We haven't looked at GenericRelation which means that it is not supported yet. Would you like to contribute? :)

la4de avatar Oct 14 '21 05:10 la4de