minca
ApiCoreInterfaces

Interface: DefineCollection

Defined in: packages/core/src/node/types.ts:323

Properties

PropertyModifierTypeDescriptionDefined in
computed?readonly| Readonly<Record<string, string>> | ((scope) => ComputedResult)Values derived from what links to its records (packages/core/docs/computed.md)packages/core/src/node/types.ts:359
contract?readonly| CollectionContract | { check?: | readonly Contract[] | ((scope) => Readonly<Record<string, unknown>>); line?: Line; }What a version must be to count, judged by readers: check conditions and a line (packages/core/docs/contracts.md)packages/core/src/node/types.ts:352
description?readonlystring-packages/core/src/node/types.ts:326
history?readonly"all" | "latest"all keeps every version of every record whole, hash-linked, for records.history. latest, the default, keeps the current version whole and forgets what earlier ones and deleted records saidpackages/core/src/node/types.ts:340
links?readonlyReadonly<Record<string, LinkDeclaration>>The link roles its records may carry, and what each may point atpackages/core/src/node/types.ts:342
namereadonlystring-packages/core/src/node/types.ts:324
rules?readonlyCollectionRulesWhat must be unique, which fields are fixed, whether records are written once: every peer checks. None by defaultpackages/core/src/node/types.ts:344
schemareadonly| JsonSchema | StandardJSONSchemaV1<unknown, unknown>JSON Schema in the supported subset, or a Standard JSON Schema validatorpackages/core/src/node/types.ts:328
title?readonlystring-packages/core/src/node/types.ts:325
topics?readonlyreadonly string[]Fields whose values are topics, like mentions, or link roles as link:<rel>, so a node that can't read the space still matches records by them. At most 8packages/core/src/node/types.ts:350
version?readonlynumberThe definition's version number. Default: one past the current version, or 1. This library refuses one that isn't higher than the one in force, or not below 2^53; peers don't check it (spec 02 §6.3)packages/core/src/node/types.ts:334

On this page