We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import graphene class MyEnum(graphene.Enum): Foo = 0 Bar = 1 class Q(graphene.ObjectType): foo = graphene.Field(MyEnum) def resolve_foo(*args, **kwargs): myenum = MyEnum.get(1) print(myenum) return myenum schema = graphene.Schema(Q) print(schema.execute( """ {foo} """).data)