Remote / foldkit-remote

StartedWrite

interface · packages/remote/src/mutation.ts:70

interface StartedWrite {
  readonly mutation: string
  readonly input: unknown
  readonly keys?: ReadonlyArray<string> | undefined
  readonly now: Option.Option<number>
  readonly optimistic: ReadonlyArray<OptimisticOperation>
}

What a request writes, as Data.mutate started it: enough to list it once it fails, with its input, and to send it again as itself.

Members

StartedWrite.mutation

property · packages/remote/src/mutation.ts:72

readonly mutation: string

The registered mutation's name.

StartedWrite.input

property · packages/remote/src/mutation.ts:74

readonly input: unknown

The input as Data.mutate was given it, decoded.

StartedWrite.keys

property · packages/remote/src/mutation.ts:75

readonly keys?: ReadonlyArray<string> | undefined

StartedWrite.now

property · packages/remote/src/mutation.ts:81

readonly now: Option.Option<number>

When the reader acted, as Data.mutate was given it: what it predicted Expr.now as and sent, and what a retry sends again. None when it was given none, and the server's clock decides.

StartedWrite.optimistic

property · packages/remote/src/mutation.ts:83

readonly optimistic: ReadonlyArray<OptimisticOperation>

What it showed until it settled, shown again by a retry.