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.

joinKeySegments

joinKeySegments(segments): string

Defined in: key-segment.ts:46

Joins segments into one key, escaping each so distinct tuples stay distinct.

undefined and null become ABSENT_SEGMENT rather than being dropped, so a tuple with a missing value cannot collapse onto a shorter tuple that never had that position at all. Omitting an absent tenant, for example, would make a tenant-less key identical to the key of a single-tenant deployment.

readonly (string | null | undefined)[]

string