TodoMutationPayload Object
Payload returned by createTodo, updateTodo, deleteTodo, and
undoDeleteTodo. Besides the affected todo (and its todoId —
select that rather than an id on the payload itself), it carries
everything the change touched so clients can update local state
without refetching: parentTodo and subtasks for subtask
operations, affected assignments, and the slices and boxes
whose aggregate progress was recalculated.
Fields
#
todo
Created or updated todo object. Select nested fields such as id, title, sliceId, and progress.
todoId
Created, updated, deleted, or restored todo id. Use this instead of selecting id directly on the payload.
Usages
#
References
#
- Field createTodo from RootMutationType
- Field deleteTodo from RootMutationType
- Field undoDeleteTodo from RootMutationType
Previous
TodoInput
Next
TodoPlacementInput
