Skip to content
From 0.5.0 the packages continue as @cqrs-ddd, documented at aristoteliss.github.io/ddd-cqrs; NestJS applications add @cqrs-ddd/nestjs. This site documents the 0.4.x line.

ABSENT_SEGMENT

const ABSENT_SEGMENT: “\-” = ‘\-’

Defined in: key-segment.ts:14

Marker written in place of a segment whose value is absent.

Deliberately \- rather than a control character, so a key can be stored in a PostgreSQL text column, which rejects U+0000. It is also unambiguous — escaping a real value only ever produces \\ or \:, so no genuine segment can render as \-, and a literal \- inside a value escapes to \\-.