17 lines
377 B
Python
17 lines
377 B
Python
import graphene
|
|
from graphene import InputObjectType
|
|
|
|
|
|
class ObjectiveInput(InputObjectType):
|
|
text = graphene.String(required=True)
|
|
|
|
|
|
class ObjectiveGroupInput(InputObjectType):
|
|
title = graphene.String(required=True)
|
|
module = graphene.ID(required=True)
|
|
objectives = graphene.List(ObjectiveInput)
|
|
|
|
|
|
class AddObjectiveGroupArgument(ObjectiveGroupInput):
|
|
pass
|