QuerySchemaContext

data class QuerySchemaContext(val aggregateType: AggregateType, val model: QueryModel)

The read model of one aggregate type a schema is compiled for.

Constructors

Link copied to clipboard
constructor(aggregateType: AggregateType, model: QueryModel)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun QuerySchemaContext.declaredFields(sources: List<QuerySchemaSource>, sensitivity: QuerySensitivityPolicy = QuerySensitivityPolicy.DEFAULT): Set<QueryField<*>>

The fields a query on this model can name as written: the system fields and the declarations of sources, merged into the logical model as DefaultQueryModelSchemaProvider merges them, before any storage facts. Fields under a map, whose keys are the caller's, are left out.