Deciduex.Mutations (deciduex v0.14.0-beta.3)

Copy Markdown View Source

Write operations for the decision graph database.

Summary

Functions

Attach a document to a node.

Create an edge between two nodes.

Create a new decision node with all metadata fields.

Delete an edge between two nodes.

Delete a node and all its edges.

Soft-delete a document (set detached_at timestamp).

Log a command to the command_log table.

Update a node's prompt in metadata_json.

Update a node's status.

Functions

attach_document(attrs)

Attach a document to a node.

create_edge(from_id, to_id, edge_type, rationale)

Create an edge between two nodes.

create_node(attrs)

Create a new decision node with all metadata fields.

Returns {:ok, id} on success, {:error, reason} on failure.

delete_edge(from_id, to_id)

Delete an edge between two nodes.

delete_node(id)

Delete a node and all its edges.

detach_document(id)

Soft-delete a document (set detached_at timestamp).

log_command(command, args, exit_code)

Log a command to the command_log table.

update_document_description(id, description, source)

Update document description.

update_prompt(id, prompt)

Update a node's prompt in metadata_json.

update_status(id, status)

Update a node's status.