Skip to main content
Guide
Mutations require a write batch. The SDK type prevents a mutating traversal from being placed in a read batch.

Create two nodes and an edge

Other mutations

Transaction behavior

All entries in the write batch commit or roll back together. Reads inside the batch can refer to earlier mutations through named variables. Do not retry a write automatically unless the full request is safe to replay.

Next steps

Typed parameters

Pass request-specific values without changing the AST shape.

Secondary indexes

Accelerate equality, uniqueness, and range lookups.