graphql-query
graphql-query copied to clipboard
Complete Domain Specific Language (DSL) for GraphQL query in Python.
Hi, First of all, Thanks a lot for the package 🚀. It is very nice to have this kind of DSL for GraphQL. Currently I am working on a project...
**To Reproduce** `print(Argument(name='someArgument', value=['value']).render())` `someArgument: [value]` `print(Argument(name='someArgument', value=["value"]).render())` `someArgument: [value]` **Expected behavior** `print(Argument(name='someArgument', value=['value']).render())` `someArgument: ['value']` `print(Argument(name='someArgument', value=["value"]).render())` `someArgument: ["value"]` **Desktop (please complete the following information):** - OS: Windows 11...
**Describe the bug** When using a singular union type with `graphql_fields` (i.e. a field with a union type with only one sub-type within the union), the field is rendered only...
**Describe the bug** Trying to use an Optional Pydantic field with a primitive type (like `str`) **To Reproduce** Steps to reproduce the behavior: ```python class Foo(GraphQLQueryBaseModel): name: Optional[str] = None...
## Description Currently, if a model is defined as ``` class Hero(GraphQLQueryBaseModel): name: str friends: List[str] ``` calling `graphql_fields` crashes with ``` AttributeError: type object 'str' has no attribute 'model_fields'...
Closes # ## Description