Skip to main content

StoredCommunity

@forge/monorepo


@forge/monorepo / backend/src / StoredCommunity

Type Alias: StoredCommunity

StoredCommunity = object

Defined in: backend/src/persistence/index.ts:1627

A community as stored: the cluster, and whatever summary has been written for it.

summaryFingerprint is the mechanism behind visible staleness. A summary records the membership it was written against; when the graph changes and the community's fingerprint moves on, the two differ and the summary is knowably out of date — without a timestamp anybody has to interpret, and without re-reading the summary to guess.

Properties

chunkIds

readonly chunkIds: readonly string[]

Defined in: backend/src/persistence/index.ts:1632


entityIds

readonly entityIds: readonly string[]

Defined in: backend/src/persistence/index.ts:1630


fingerprint

readonly fingerprint: string

Defined in: backend/src/persistence/index.ts:1633


id

readonly id: string

Defined in: backend/src/persistence/index.ts:1628


level

readonly level: number

Defined in: backend/src/persistence/index.ts:1629


relationshipIds

readonly relationshipIds: readonly string[]

Defined in: backend/src/persistence/index.ts:1631


summarisedAt?

readonly optional summarisedAt?: string

Defined in: backend/src/persistence/index.ts:1637


summary?

readonly optional summary?: string

Defined in: backend/src/persistence/index.ts:1634


summaryFingerprint?

readonly optional summaryFingerprint?: string

Defined in: backend/src/persistence/index.ts:1636

The fingerprint the summary was written against. Differs from fingerprint exactly when stale.