-
Notifications
You must be signed in to change notification settings - Fork 822
Dict or attr default resolver #638
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
Conversation
Just found graphql-python/graphql-core#103 which looks related. Not sure where the best place to solve this is? @syrusakbary @jhgg |
@syrusakbary I'd appreciate a decision on this PR. If you don't don't want it as part of graphene then I'll close it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm +1 on this change!
Ping @syrusakbary Any feedback would be welcome |
759e36e
to
f69d221
Compare
This looks fine to me. |
* Add dict_or_attr resolver and set it as default * Add some tests * Dry up code * Updated formatting
I've created a
dict_or_attr_resolver
so that you can pass dicts or objects to object types.I've also set it as the default resolver since I can't think of a downside but let me know if you don't think thats a good idea.