waygraph / ReadBlockOptions
Interface: ReadBlockOptions
Defined in: src/engine/read/read-block.ts:13
Options for defineReadBlock: shaped like a Method's, with one instruction phase.
Properties
description?
optionaldescription?:string
Defined in: src/engine/read/read-block.ts:15
from?
optionalfrom?:Checkpoint<string> | readonlyCheckpoint<string>[]
Defined in: src/engine/read/read-block.ts:17
The Checkpoint(s) whose page this reads. Leave it out to read on every page (a header, the signed-in user).
instruction
instruction:
object
Defined in: src/engine/read/read-block.ts:20
read()
Returns one namespace's spec (Post({ ... })) or several. Runs on every read, so it can use ctx.mem.
Parameters
ctx
Returns
ReadSpec | readonly ReadSpec[]
name
name:
string
Defined in: src/engine/read/read-block.ts:14
requires?
optionalrequires?: readonlyMemKey<unknown>[]
Defined in: src/engine/read/read-block.ts:19
Mem keys read uses through ctx.mem; without them set, this Read Block is skipped (and said so).