Write datoms as one changeset

write

Write to the graph: a list of assert and retract datoms applied as ONE changeset.

write

Everything is datoms. An edge is three asserts: fromUrn, toUrn, kind. Deleting is asserting deletedAt. There is no separate tool for creating an object or linking two, because a type-specific write tool is exactly what this surface exists to avoid.

Use tempids rather than minting identifiers yourself: name an entity $whatever and the server mints its real URN and substitutes it everywhere, including in value positions, so a whole subgraph lands in one call. Always pass an idempotencyKey: a retry with the same key returns the original result instead of minting a second set of objects.