EventStreamQueryModelProfile

Aggregated domain event streams: one record per command, typed event payloads under body[].body.

Properties

Link copied to clipboard
open override val eventTimeField: QueryField

When the record last changed: the default orderBy of FIRST and LAST metrics; null when there is none.

Link copied to clipboard
open override val identityField: QueryField

Unique record identity: the target of id filters and the tie-breaker of every cursor; null when the model declares none, which rejects both.

Link copied to clipboard
open override val payloadField: QueryField

Logical field that holds the user payload; masked fields and schema extensions must live below it. null when the whole record is payload, as in a dataset.

Link copied to clipboard
open override val payloadTypeField: QueryField

Field that names the payload type of each record, or null when the payload is monomorphic.

Link copied to clipboard

Fields that every record of this model carries, independent of the aggregate.

Link copied to clipboard
open override val variantElement: QueryField

The element whose variants are typed payloads (an event stream's body), or null for a monomorphic payload.

Functions

Link copied to clipboard
open override fun validateProjection(projection: Projection)

An event payload is only interpretable together with its bodyType.