graphene-pydantic
graphene-pydantic copied to clipboard
Integrate GraphQL with your Pydantic models
Hey. Is there a way to handle reserved keywords in schema? Pydantic model that works fine: ```python class Model(BaseModel): class_: str class Config: fields = { 'class_': 'class' } ```...
Dataclasses are really useful in some instances. Pydantic has a drop-in replacement for dataclasses - but does not seem to supported by this library. Not sure how difficult it would...
# Fix same error as in #63 but in `convert_pydantic_input_field` Please describe the feature(s) added, bug(s) fixed, etc here at a high level, and go into detail in further paragraphs...
I am trying to use pydantic's [AnyUrl](https://docs.pydantic.dev/latest/api/networks/#pydantic.networks.AnyUrl) type: ``` class SomePydanticModel(pydantic.BaseModel): url: pydantic.AnyUrl = pydantic.Field() class SomeGrapheneObject(graphene_pydantic.PydanticObjectType): class Meta: model = SomePydanticModel ``` But I receive the following error: `graphene_pydantic.converters.ConversionError:...
I have the following challenge: I am getting data from a database in json format / as dict. This works great when I am directly grabbing the data in the...
Support the special type hints that pydantic provides to give more control over validating dates. # Enable Pydantic custom datetime type hints Pydantic has some additional classes that you can...
I found graphene-pydantic fails converting `list[str]` field. ```python import graphene import pydantic import graphene_pydantic class Model(pydantic.BaseModel): field: list[str] = [] class GrapheneModel(graphene_pydantic.PydanticObjectType): class Meta: model = Model class Query(graphene.ObjectType): model...
Hello, I wanted to use nested pydantic.BaseModel with PydanticInputObjectType, but I struggle to make it work Something like this: ``` from pydantic import BaseModel from graphene_pydantic import PydanticInputObjectType import graphene...
Bumps [black](https://github.com/psf/black) from 23.3.0 to 24.3.0. Release notes Sourced from black's releases. 24.3.0 Highlights This release is a milestone: it fixes Black's first CVE security vulnerability. If you run Black...