graphene
graphene copied to clipboard
GraphQL framework for Python
I'm using Graphene with Django, and I have a middleware that checks user auth token. I'm having an issue with the middleware being executed at the field-level. Each field resolution...
We should upgrade graphene to use modern type hints. In that process, type hints should be removed from the class/method documentation to have the code as the single source of...
I did not figure out how I could have the `get_node` classmethod of an `ObectType` be async. It would be nice if it was because otherwise it can not take...
The GraphQL spec finally allows using the `@deprecated` directive on field args, directive args and input fields (see graphql/graphql-spec#805) It would be nice to support this in Graphene using the...
Creating this issue to open up an associated PR. Will include default error handling. More to come here shortly.
KeyError: 0 arises when I try to iterate over graphene Enums. The same code with PyEnums works fine: ``` from graphene import Enum class Class(Enum): FIRST = "first" SECOND =...
Looking at the `node.py` implementation: ```py class NodeField(Field): def __init__(self, node, type=False, deprecation_reason=None, name=None, **kwargs): assert issubclass(node, Node), "NodeField can only operate in Nodes" self.node_type = node self.field_type = type...
The [Root Value](https://docs.graphene-python.org/en/latest/execution/execute/#root-value) example in the documentation: ``` from graphene import ObjectType, Field, Schema class Query(ObjectType): me = Field(User) def resolve_user(root, info): return {'id': root.id, 'firstName': root.name} schema = Schema(Query)...
**Is your feature request related to a problem? Please describe.** I am trying to learn how to use Graphene with my existing DataModels. The problem I've come across is my...