import graphene from django.conf import settings from graphene import relay from graphene_django.debug import DjangoDebug # Keep this import exactly here, it's necessary for StreamField conversion from api import graphene_wagtail from book.schema.mutations import BookMutations from book.schema.queries import BookQuery from objectives.schema import ObjectivesQuery from rooms.schema import RoomsQuery class Query(RoomsQuery, ObjectivesQuery, BookQuery, graphene.ObjectType): node = relay.Node.Field() if settings.DEBUG: debug = graphene.Field(DjangoDebug, name='__debug') class Mutation(graphene.ObjectType, BookMutations): if settings.DEBUG: debug = graphene.Field(DjangoDebug, name='__debug') schema = graphene.Schema(query=Query, mutation=Mutation)