Closed g-as closed 3 years ago
@g-as, thank you for feedback.
We are in the middle of publishing enhanced API where all fields would be defined in class body as discussed in #20.
This internal function is refactored there and I definitely want to take this into account there.
A'ight, I'll go take a look.
This should work now with code in features/class-api branch. Feel free to try.
You rock!
See pull request #30
Hi,
django field name is used to determine the field name for the corresponding strawberry type.
This is obviously fine, but in the case of reversed relations, the
related_name
would be more appropriate IMO.Something like that would do the trick:
I'll draft a PR tomorrow.
Upvote & Fund