You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a great library and a recent discovery of mine. I found declaring expandable_fields tedious and wanted to automatically discover expandable_fields based on model relationships. I came up with the snippet below in one of my projects. I was wondering if you're open to a pull-request where we add the functionality?
We could use the __all__ convention, common in DRF, to make all related fields expandable.
This is a great library and a recent discovery of mine. I found declaring expandable_fields tedious and wanted to automatically discover expandable_fields based on model relationships. I came up with the snippet below in one of my projects. I was wondering if you're open to a pull-request where we add the functionality?
We could use the
__all__
convention, common in DRF, to make all related fields expandable.https://django.wtf/blog/graphql-like-features-in-django-rest-framework/#magically-discovering-expandable_fields
The text was updated successfully, but these errors were encountered: