Skip to content

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

Merged
merged 5 commits into from
Mar 11, 2019
Merged

Conversation

jkimbo
Copy link
Member

@jkimbo jkimbo commented Jan 5, 2018

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.

@jkimbo
Copy link
Member Author

jkimbo commented Jan 7, 2018

Just found graphql-python/graphql-core#103 which looks related. Not sure where the best place to solve this is? @syrusakbary @jhgg

@jkimbo
Copy link
Member Author

jkimbo commented Jul 24, 2018

@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.

Copy link
Member

@patrick91 patrick91 left a 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!

@jkimbo
Copy link
Member Author

jkimbo commented Aug 25, 2018

Ping @syrusakbary

Any feedback would be welcome

@ekampf
Copy link
Contributor

ekampf commented Mar 7, 2019

This looks fine to me.
I want to fix the build in the master branch before starting to approve and merge PRs.
I'll try to get master ready to accept new PRs ASAP

@ekampf ekampf self-requested a review March 8, 2019 01:18
@ekampf ekampf requested a review from dan98765 March 11, 2019 17:07
@ekampf ekampf merged commit ca9188a into graphql-python:master Mar 11, 2019
dan98765 pushed a commit to dan98765/graphene that referenced this pull request Mar 12, 2019
* Add dict_or_attr resolver and set it as default

* Add some tests

* Dry up code

* Updated formatting
@jkimbo jkimbo mentioned this pull request Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants