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):
|
class ProjectEntryInput(InputObjectType):
|
||||||
activity = graphene.String()
|
description = graphene.String()
|
||||||
reflection = graphene.String()
|
|
||||||
next_steps = graphene.String()
|
|
||||||
document_url = graphene.String()
|
document_url = graphene.String()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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',)
|
||||||
|
|
|
||||||
|
|
@ -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!
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue