Skip to content

Instantly share code, notes, and snippets.

@nidhinp
Last active October 8, 2019 13:57
Show Gist options
  • Save nidhinp/24c7249d14172ffbd467517ece6105d6 to your computer and use it in GitHub Desktop.
Save nidhinp/24c7249d14172ffbd467517ece6105d6 to your computer and use it in GitHub Desktop.
from graphene import ObjectType, Schema
from app.info.graphql.schema import Query as InfoQuery
from app.info.graphql.schema import Mutation as InfoMutation
class Query(InfoQuery, ObjectType):
# This class will inherit from multiple Queries
# as we begin to add more apps to our project
pass
class Mutation(InfoMutation, ObjectType):
# This class will inherit from multiple Mutations
# as we begin to add more apps to our project
pass
schema = Schema(query=Query, mutation=Mutation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment