Schema
A Schema defines the structure of a Document. Schemas are also versioned, allowing for live, gradual migrations of data for some users, while others continue to work with the old version in parallel.
Definition
Type: Schema = { fields: SchemaFieldsDef; ns: null | string; upgrade?: (data: ReadonlyCoreObject, schema: Schema) => CoreObject; version: number }