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):
activity = graphene.String()
reflection = graphene.String()
next_steps = graphene.String()
description = graphene.String()
document_url = graphene.String()

View File

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

View File

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