Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import graphene
from graphql_auth.schema import UserQuery, MeQuery
from graphql_auth import mutations
class AuthMutation(graphene.ObjectType):
register = mutations.Register.Field()
class Query(UserQuery, MeQuery, graphene.ObjectType):
class Mutation(AuthMutation, graphene.ObjectType):
schema = graphene.Schema(query=Query, mutation=Mutation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment