Block (Base)
The three fields every concrete block type shares: the required id and type, and the daemon-filled revision.

Extends · closed

id
The block's permanent identity inside its document.
revision
Output only: CID of the last Change that modified this block.
optional
type
Name of the block type, such as `Paragraph` or `Image`.

Block (Base) holds the three fields every concrete block type shares, and every concrete type extends it. id is the block's permanent identity inside its document. type names the block type. revision is output only: the CID of the last Change that modified the block. A new block type is a struct that extends this base and adds its own text, link, annotations and attributes. See block/core for the built-in union and Blocks for the model.

See also

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime