Skip to main content

DomainTransactionOp

Defined in: js-api/src/domains.ts:596

One operation of DomainsDataSource.transaction.

Properties

PropertyTypeDescriptionDefined in
expectedVersion?numberOptimistic-concurrency guard for update ops.js-api/src/domains.ts:612
id?string-js-api/src/domains.ts:610
onDuplicate?"error"Insert ops only: 'error' fails the whole transaction on a business-key conflict. Without it the insert merges into the existing row and reports {created: false, status: 'duplicate', existingId}.js-api/src/domains.ts:616
op"insert" | "update" | "delete" | "restore"'restore' carries id alone and undoes a landed soft delete — the Delete grant, not a new permission; the server orders a parent's restore before its child's.js-api/src/domains.ts:600
ref?stringNames this op's new row id; other ops may reference it in values as '$<ref>' — forward references are resolved (the server orders the inserts), and deletes run child-first. Escape a literal leading $ in a value by doubling it: '$$100' stores '$100'.js-api/src/domains.ts:608
tablestring'<table>' in the transaction's schema, or '<schema>.<table>' — one transaction may span schemas.js-api/src/domains.ts:603
values?object-js-api/src/domains.ts:609