Update mutation schema for project entries
This commit is contained in:
parent
b4f11fa29b
commit
315216833b
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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',)
|
||||
|
|
|
|||
|
|
@ -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!
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue