omnigraph/crates
Claude d10f78530f
Support multi-statement mutations (insert + edge in one query)
Allow mutation queries to contain multiple sequential statements that
execute atomically within a single transactional run. This enables
patterns like inserting a node and its edges in one query:

    query add_and_link($name: String, $age: I32, $friend: String) {
        insert Person { name: $name, age: $age }
        insert Knows { from: $name, to: $friend }
    }

Changes span the full compiler-to-execution pipeline:
- Grammar: mutation_body = { mutation_stmt+ }
- AST: QueryDecl.mutations: Vec<Mutation>
- IR: MutationIR.ops: Vec<MutationOpIR>
- Execution: loop over ops, accumulate affected counts

Cross-statement visibility works because each statement's commit_updates
advances the manifest state, so subsequent statements see prior writes.
Atomicity comes from the existing run mechanism (begin_run/publish_run).

https://claude.ai/code/session_01E4VG2WXrZW8aeXFiqr8NwF
2026-04-11 20:27:51 +00:00
..
omnigraph Support multi-statement mutations (insert + edge in one query) 2026-04-11 20:27:51 +00:00
omnigraph-cli Fix CLI ergonomics and stream export output 2026-04-11 19:01:48 +03:00
omnigraph-compiler Support multi-statement mutations (insert + edge in one query) 2026-04-11 20:27:51 +00:00
omnigraph-server Fix CLI ergonomics and stream export output 2026-04-11 19:01:48 +03:00