create_edge
Create one edge between two nodes. Edge type auto-infers when omitted. Target accepts an ID, or a title+type pair the server resolves. For 3+ edges, use `batch_create_edges`.
Edgesatomic. Single store mutation.
Arguments
source_idstringrequiredSource node ID
target_idstringoptionalTarget node ID
target_titlestringoptionalTarget node title (alternative to target_id; requires target_type).
target_typestringoptionalTarget node type (used with target_title for resolution)
typestringoptionalEdge type. Auto-inferred if omitted.
Returns
JSON: the created edge object plus optional resolution metadata.
Examples
Output
// Wire a persona to a job using the canonical edge type persona_pursues_job
// Input:
{ "source_id": "persona_01", "target_id": "job_03", "type": "persona_pursues_job" }
// Output (truncated):
{
"edge": { "id": "edge_15", "type": "persona_pursues_job", "source": "persona_01", "target": "job_03" },
"inferred": false
}