Skip to content

Instantly share code, notes, and snippets.

@joaquinacuna
Created November 4, 2020 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaquinacuna/4ecdc34b9f1612a11b60fbbefbafd651 to your computer and use it in GitHub Desktop.
Save joaquinacuna/4ecdc34b9f1612a11b60fbbefbafd651 to your computer and use it in GitHub Desktop.
# auth.schema.py
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):
pass
class Mutation(AuthMutation, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query, mutation=Mutation)
@wel-sen
Copy link

wel-sen commented Jun 22, 2021

cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment