yezyilomo / django-restql

Turn your API made with Django REST Framework(DRF) into a GraphQL like API.
https://yezyilomo.github.io/django-restql
MIT License
621 stars 43 forks source link

Support nested RelatedField #319

Open jheld opened 1 month ago

jheld commented 1 month ago

There is a very custom use case in DRF, called RelatedField which subclasses Field and thus sits just a little underneath the usual class hierarchy of Serializer. They are quite similar, but I unfortunately cannot simply plug-n-play a subclass of RelatedField inside a call to NestedField.

So, I'm wondering if there's room to build support in the wiring of NestedField or perhaps to make a new integration point like NestedRelatedField to accommodate this issue.