32 lines
691 B
Python
32 lines
691 B
Python
import graphene
|
|
from graphene import InputObjectType
|
|
|
|
|
|
class ProjectInput(InputObjectType):
|
|
title = graphene.String()
|
|
description = graphene.String()
|
|
objectives = graphene.String()
|
|
appearance = graphene.String()
|
|
|
|
|
|
class AddProjectArgument(ProjectInput):
|
|
pass
|
|
|
|
|
|
class UpdateProjectArgument(ProjectInput):
|
|
id = graphene.ID(required=True)
|
|
|
|
|
|
class ProjectEntryInput(InputObjectType):
|
|
activity = graphene.String()
|
|
reflection = graphene.String()
|
|
next_steps = graphene.String()
|
|
|
|
|
|
class AddProjectEntryArgument(ProjectEntryInput):
|
|
project = graphene.ID(required=True)
|
|
|
|
|
|
class UpdateProjectEntryArgument(ProjectEntryInput):
|
|
id = graphene.ID(required=True)
|