Update mutation schema for project entries

This commit is contained in:
Ramon Wenger 2021-10-05 22:55:03 +02:00
parent b4f11fa29b
commit 315216833b
3 changed files with 5 additions and 11 deletions

View File

@ -19,9 +19,7 @@ class UpdateProjectArgument(ProjectInput):
class ProjectEntryInput(InputObjectType): class ProjectEntryInput(InputObjectType):
activity = graphene.String() description = graphene.String()
reflection = graphene.String()
next_steps = graphene.String()
document_url = graphene.String() document_url = graphene.String()

View File

@ -13,5 +13,5 @@ class ProjectSerializer(serializers.ModelSerializer):
class ProjectEntrySerializer(serializers.ModelSerializer): class ProjectEntrySerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = ProjectEntry model = ProjectEntry
fields = ('id', 'activity', 'reflection', 'next_steps', 'document_url', 'created', 'project') fields = ('id', 'document_url', 'description', 'created', 'project')
read_only_fields = ('id', 'created',) read_only_fields = ('id', 'created', 'activity', 'reflection', 'next_steps',)

View File

@ -69,9 +69,7 @@ input AddProjectArgument {
} }
input AddProjectEntryArgument { input AddProjectEntryArgument {
activity: String description: String
reflection: String
nextSteps: String
documentUrl: String documentUrl: String
project: ID! project: ID!
} }
@ -1348,9 +1346,7 @@ input UpdateProjectArgument {
} }
input UpdateProjectEntryArgument { input UpdateProjectEntryArgument {
activity: String description: String
reflection: String
nextSteps: String
documentUrl: String documentUrl: String
id: ID! id: ID!
} }