graphene-pydantic
graphene-pydantic copied to clipboard
Integrate GraphQL with your Pydantic models
@necaris I have some requirements on a project that `graphene-pydantic==0.3.0` doesn't support. 1. In `mutations` - those fields that were not passed - still come as `None`. As a result,...
issue - https://github.com/graphql-python/graphene-pydantic/issues/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...
This should admit use of constrained types -- fixes https://github.com/graphql-python/graphene-pydantic/issues/64
I am using graphene-pydantic to generate a GraphQL schema for my mutation. I have gone through the documentation and it's working fine for all the types but the problem is...
Currently attempting to convert a [constrained type](https://pydantic-docs.helpmanual.io/usage/types/#constrained-types) will result in: ``` graphene_pydantic.converters.ConversionError: Don't know how to convert the Pydantic field ModelField(name='id', type=ConstrainedIntValue, required=True) () ```
## Use Case Scenario I've two pydantic models. Each in his own module (file). One Model, the *TUser* depends on the *TAddress*. address_model.py ```python class TAddress(BaseModel): id: Optional[int] address: Optional[constr(max_length=100,...
If you try to build an ObjectType and InputObjectType for pydantic models with the same enum, it tries to create the same enum twice. (This is not an issue with...
this schema ``` class TestSchema(BaseModel): date_field: datetime.date ``` breaks in tests that use freezegun to freeze time: ``` E graphene_pydantic.converters.ConversionError: Don't know how to convert the Pydantic field ModelField(name='date_field', type=date,...
I'm trying to pass a description from one of the pydantic fields to the graphiQL documentation. I can't seem to get it to be recognized. It seems to be supported...
We think the following code produces an incorrect schema: ```python from pydantic import BaseModel from graphene_pydantic import PydanticObjectType import graphene class ExampleModel(BaseModel): attr: int = 0 class ExampleType(PydanticObjectType): class Meta:...