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