Partial GraphQL models with pydantic

I was recently building a client for a GraphQL service in python and was faced with the problem of modeling the message types. Since those are essentially json models, I turned to pydantic with which I had good experience in the past. Although in theory this should be relatively simple, I encountered some annoying problems right off the bat. Lets take trevorblades’ country info GraphQL API for example. Its schema type for Country looks like this:...

February 5, 2022 Â· Nitzan Zada