ProjectionDsl

Builds a Projection: the fields to return (include) or to leave out (exclude); with neither, every field.

projection {
include("aggregateId", "state.name")
exclude(OrderStateProperties.STATE__ADDRESS)
}

Functions

Link copied to clipboard
fun exclude(vararg fields: String)
fun exclude(vararg fields: QueryField<*>)
Link copied to clipboard
fun include(vararg fields: String)
fun include(vararg fields: QueryField<*>)
Link copied to clipboard
fun String.path(block: ProjectionDsl.() -> Unit)

The fields block includes and excludes, under this path: "state".path { include("name") }.

fun QueryField<*>.path(block: ProjectionDsl.() -> Unit)

The fields block includes and excludes, under this field's path.