# `Deciduex.Mutations`
[🔗](https://github.com/notactuallytreyanastasio/deciduous/blob/main/lib/deciduex/mutations.ex#L1)
Write operations for the decision graph database.
# `attach_document`
Attach a document to a node.
# `create_edge`
Create an edge between two nodes.
# `create_node`
Create a new decision node with all metadata fields.
Returns `{:ok, id}` on success, `{:error, reason}` on failure.
# `delete_edge`
Delete an edge between two nodes.
# `delete_node`
Delete a node and all its edges.
# `detach_document`
Soft-delete a document (set detached_at timestamp).
# `log_command`
Log a command to the command_log table.
# `update_document_description`
Update document description.
# `update_prompt`
Update a node's prompt in metadata_json.
# `update_status`
Update a node's status.
---
*Consult [api-reference.md](api-reference.md) for complete listing*