graphene
graphene copied to clipboard
GraphQL framework for Python
**Note: for support questions, please use stackoverflow**. This repository's issues are reserved for feature requests and bug reports. * **What is the current behavior?** We have types: ``` ChildType(graphene.ObjectType): enabled...
I have a list returning from query like this `[ { "name": "name1", "color":"red"}, { "name": "name2", "color": "green"} ]` but I want it to return like JSON e.g. `...
is there any way to pass a model as meta class to InputObjectType class? like this: ``` class GasUnitInput(graphene.InputObjectType): class Meta: model = GasUnit ```
**Is your feature request related to a problem? Please describe.** Yes, I am writing tests for my graphene app. I need to test whether certain queries produce errors. When `client.execute(...)`is...
Is there a great reason why `graphene.utils.subclass_with_meta.SubclassWithMeta.__init_subclass__`, doesn't call `super().__init_subclass__()`? https://github.com/graphql-python/graphene/blob/master/graphene/utils/subclass_with_meta.py#L21-#L46 The issue with this is IMO the following: - Class `Foo` has defined a custom `__init_subclass__`. - Class `Bar`...
I have a custom input object type ``` class Filters(graphene.InputObjectType): name = graphene.String() type = graphene.List(graphene.String) ``` and the query definition ``` class Query(graphene.ObjectType): search = graphene.Field( SearchResult, query=graphene.String(required=True), filters=graphene.Argument(Filters,...
**Note:` for support questions, please use stackoverflow**. This repository's issues are reserved for feature requests and bug reports. * **What is the current behavior?** the following implementation of `to_global_id` fails...
This PR bumps upload-artifact and codecov actions, thus fix deprecation warnings.
This PR bumps mypy, and fixes below error. ```python graphene/utils/deprecated.py:30: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}"...