Magidoc

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

#

assignments

Assignments affected by the todo mutation.

boxes

[Box ]

Boxes affected by progress or ordering changes.

parentTodo

Parent todo when the mutation affects a subtask.

progress

Updated aggregate progress after the mutation.

slices

Project slices affected by progress or ordering changes.

subtasks

Subtasks affected by the mutation.

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

#