vbv/server/vbv_lernwelt/core/schema.py

25 lines
815 B
Python

import graphene
from vbv_lernwelt.assignment.graphql.mutations import AssignmentMutation
from vbv_lernwelt.assignment.graphql.queries import AssignmentQuery
from vbv_lernwelt.course.graphql.queries import CourseQuery
from vbv_lernwelt.course_session.graphql.mutations import CourseSessionMutation
from vbv_lernwelt.course_session.graphql.queries import CourseSessionQuery
from vbv_lernwelt.feedback.graphql.mutations import FeedbackMutation
from vbv_lernwelt.learnpath.graphql.queries import CircleQuery
class Query(
AssignmentQuery, CourseQuery, CourseSessionQuery, CircleQuery, graphene.ObjectType
):
pass
class Mutation(
AssignmentMutation, CourseSessionMutation, FeedbackMutation, graphene.ObjectType
):
pass
schema = graphene.Schema(query=Query, mutation=Mutation, auto_camelcase=False)