Created
November 4, 2020 16:09
-
-
Save joaquinacuna/4ecdc34b9f1612a11b60fbbefbafd651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cool!