-
Notifications
You must be signed in to change notification settings - Fork 822
Django relations not traversed #43
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
Comments
BTW: I've had a good look around the code to figure this out. I'd ideally write a pull request for this, but I'm not confident enough with the codebase to really know where to start. My guess would be to somehow handle this in |
Oh! That's a bug! Thanks for such a detailed log! EDIT: |
@adamcharnock Could you copy here the output of this execution? field = Account._meta.fields_map['transactions_out']
print (field, field.attname, field.name, field.object_type, field.type) Thanks! |
@adamcharnock I've recreated your issue and the last commit fixes it :) |
Fantastic, just tried it and it works great :-) I'm about to create another issue to start a discussion around point 2 in the above description. |
fixes graphql-python#8, base import of field no longer works for query property. Us…
Perhaps this is a known limitation, or perhaps I'm doing it wrong.
My I have the following (simplified) django models:
Desire: I want to traverse the
Account.transactions_out
reverse relationship.My Query & Nodes look like this:
When I run the following query:
The result comes back with
"transactionsOut": null
, even though transactions do exist.Solution: After some debugging I've found the following change will produce results:
Seems odd because: It seems like the Graphene's Django support does not:
transactionsOut
->transactions_out
However – and as always – it is quite possible I'm doing this wrong. I'm also aware this project is a work in progress. Also, if GitHub issues are not the correct place for this I'm happy to move it elsewhere.
The text was updated successfully, but these errors were encountered: