graphene-pydantic
graphene-pydantic copied to clipboard
Several features to improve compatibility with pidantic
@necaris I have some requirements on a project that graphene-pydantic==0.3.0
doesn't support.
- In
mutations
- those fields that were not passed - still come asNone
. As a result, when parsing a dictionary into aType[BaseModel]
, these fields are also passed through and an entry is added to the database with these values.exclude_default
,exclude_unset
- don't work. It is not correct. - If
null
comes from theclient
to theInt
field - I get an error. The field must be nullable. - Pass empty strings as null in Output.
I corrected them - https://github.com/graphql-python/graphene-pydantic/pull/75
@dima-dmytruk23 if you have fixes for these issues it's definitely worth making a PR!
@dima-dmytruk23 if you have fixes for these issues it's definitely worth making a PR!
Ok. Created PR.
@necaris you can see this
https://github.com/graphql-python/graphql-core/issues/170#issuecomment-1120402616