ApplyWritesRequest

data class ApplyWritesRequest(val repo: AtIdentifier, val validate: Boolean? = null, val writes: ReadOnlyList<ApplyWritesRequestWriteUnion>, val swapCommit: Cid? = null)

Parameters

repo

The handle or DID of the repo (aka, current account).

validate

Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.

swapCommit

If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.

Constructors

Link copied to clipboard
constructor(repo: AtIdentifier, validate: Boolean? = null, writes: ReadOnlyList<ApplyWritesRequestWriteUnion>, swapCommit: Cid? = null)

Properties

Link copied to clipboard

The handle or DID of the repo (aka, current account).

Link copied to clipboard
val swapCommit: Cid? = null

If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.

Link copied to clipboard
val validate: Boolean? = null

Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.

Link copied to clipboard