import graphene from django.conf import settings from graphene_django.debug import DjangoDebug from api import graphene_wagtail from book.schema import BookQuery from objectives.schema import ObjectivesQuery class Query(ObjectivesQuery, BookQuery, graphene.ObjectType): # This class will inherit from multiple Queries if settings.DEBUG: debug = graphene.Field(DjangoDebug, name='__debug') class Mutation(graphene.ObjectType): # This class will inherit from multiple Queries if settings.DEBUG: debug = graphene.Field(DjangoDebug, name='__debug') schema = graphene.Schema(query=Query)