Skip to main content

entityId

@forge/monorepo


@forge/monorepo / backend/src / entityId

Function: entityId()

entityId(type, name): string

Defined in: backend/src/knowledge/graph.ts:143

The identity of an entity: its type and its normalised name.

Readable rather than hashed, deliberately. concept:retry budget in a log, an error message or a database row tells whoever is reading it what went wrong; sha256:9f2a… tells them to go and write a script. The id is not a secret and its length is not a problem at this scale.

Type participates because a person and a project can share a name and are not the same thing.

Parameters

type

string

name

string

Returns

string