FieldSpec typedef

FieldSpec = ({String path, CrdtType type, Object? value})

One field of a document, ready to be written as its own CRDT record: a stable path, the current value, and the CrdtType that governs how concurrent edits to it merge.

Paths must be stable across versions of the same document and must not contain the ASCII Unit Separator (\x1F, U+001F), which the engine reserves as the document-id/field-path separator.

Implementation

typedef FieldSpec = ({String path, Object? value, CrdtType type});