QueryAlias

annotation class QueryAlias(val value: String)

Other logical paths a query may use for this field, typically its names before a rename.

Each value is a full logical path of the query model, such as state.oldName. Filters, sorts, projections and aggregations may use an alias (or a path below it); admission replaces it with the field's canonical path, so results, sort uniqueness, protection and cursors are all decided by the canonical name, and the capability descriptor lists the aliases under the canonical field. Mark a field kept only for old callers with Kotlin's @Deprecated instead.

data class OrderState(
@field:QueryAlias("state.customer")
val buyer: Buyer,
)

Properties

Link copied to clipboard
val value: Array<out String>