guesstimate/internal/graph/mutation.graphql

27 lines
611 B
GraphQL
Raw Normal View History

2020-08-08 15:04:59 +02:00
input UserChanges {
name: String
}
input CreateProjectChanges {
title: String!
}
input ProjectTaskChanges {
label: String
categoryId: ID
estimations: ProjectTaskEstimationsChanges
}
input ProjectTaskEstimationsChanges {
optimistic: Float
likely: Float
pessimistic: Float
}
2020-08-08 15:04:59 +02:00
type Mutation {
updateUser(id: ID!, changes: UserChanges!): User!
createProject(changes: CreateProjectChanges!): Project!
updateProjectTitle(projectId: ID!, title: String!): Project!
addProjectTask(projectId: ID!, changes: ProjectTaskChanges): Task!
removeProjectTask(projectId: ID!, taskId: ID!): Boolean!
2020-08-08 15:04:59 +02:00
}