-
Notifications
You must be signed in to change notification settings - Fork 45
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
Pydantic compatibility features #75
Conversation
@dima-dmytruk23 in #73 where you brought this up, you mention a few specific cases. I am having trouble understanding what you need, and why these code changes are necessary for this library. Can you please provide specific code examples that don't work without these changes? Please see some specific questions on each point below
It seems perhaps that
I tried this, and it seems to work fine for me if I mark the field as
Does pydantic/pydantic#2687 solve this? I don't think that turning empty strings into |
Very strange. Now it works.
Yes. It looks like it works. Thnx.
Yes. i have tried this. |
@dima-dmytruk23 thank you for the example! I've been looking into it and from what I can see, the input query turns into a Based on graphql/graphql-spec#476 , there isn't actually anything in the specification that says that passing the default I'll look a little further if I get the time. |
@necaris Thnx. I think it would be nice to use some kind of flag in the |
@necaris It is possible to collect words from |
@necaris Also, I can fix it if replace |
@dima-dmytruk23 it seems to me that if you are able to fix it with a change to |
There hasn't been movement on this in 6 months, so I'm closing it as not an appropriate change for this library (rather than |
It's not problem of |
@dima-dmytruk23 from what I saw from the |
issue - #73
Python 3.9
https://github.com/graphql-python/graphene-pydantic/pull/75/files#diff-7a099366beb78ce7e417d3c73fef1dcb56772e9c163a7b0e9a4680cb29d7b1c1R193
Perhaps here you can somehow check that the field in the model is Optional and then use this class?
override_input_fields
- Perhaps there is a better solution.