-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django: Make m2m through table fields available on edges #83
Comments
Never thought about that but makes sense 👍 |
We'd also love to see this, an example of using m2m relationships would also be fantastic. |
@matclayton FWIW I'm currently treating the through table as simply another node. It makes the GraphQL somewhat nested, but it works for now. |
We would also like to see this feature :) |
Hi @adamcharnock . We're currently going through old issues that appear to have gone stale (ie. not updated in about the last 6 months) to try and clean up the issue tracker. If this is still important to you please comment and we'll re-open this. Thanks! |
Reopening the issue as it might be useful to have |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is it possible to keep this on the radar? It would be a very nice feature (And its how I assume it would work) |
So I've found a way of implementing this using annotations
I have also created a custom connection field to add annotations
So the above becomes
I also attempted to have the two Connection classes autogenerated within the connection field. So you basically pass in the the node value and it would generate the class for you. However because Anyway this is a sufficient enough solution for myself for now |
@McPo What would it take for graphene to automatically add the through model fields? |
Any updates on this? |
@syrusakbary Can you reopen and move this to a discussion? |
When a
DjangoConnectionField
traverses a many-to-many field it would be nice to have the option to expose the fields of any through-table on the edges of the relationship.[As much a note for myself as a feature request]
The text was updated successfully, but these errors were encountered: