QueryReference

annotation class QueryReference(val aggregate: String, val context: String = "")

Declares a field (or the elements of an array field) the id of an aggregate, so query consumers can look the aggregate up and link to it: @field:QueryReference("member"), or @field:QueryReference("product", context = "catalog") for an aggregate of another bounded context. context defaults to the bounded context of the model that declares the field. The Manifest writes it as x-wow-reference: {"aggregate": "member", "context"?: "catalog"}. A field has one semantic type, so this cannot combine with QueryTemporal, QueryDecimal, QueryMoney or QueryDuration.

Properties

Link copied to clipboard

The referenced aggregate's name.

Link copied to clipboard

The referenced aggregate's bounded context; empty, the default, is the declaring model's own.