← Back to Stormify Documentation

facet

fun facet(alias: String, vararg paths: ScalarPath): PagedQuery<T>

Fluent addFacet: one facet under alias over paths, OR-combined when more than one.


fun facet(alias: String, vararg fieldPaths: String): PagedQuery<T>

Fluent addFacet using dot-notation paths.


fun facet(alias: String, type: Facet.Type, vararg paths: ScalarPath): PagedQuery<T>

Fluent addFacet with an explicit type.


fun facet(alias: String, type: Facet.Type, vararg fieldPaths: String): PagedQuery<T>

Fluent addFacet with an explicit type, using dot-notation paths.


fun facet(alias: String, enumValues: Map<String, Any>, vararg paths: ScalarPath): PagedQuery<T>

Fluent addFacet for an ENUM facet with a display-name-to-DB-value map.


fun facet(alias: String, enumValues: Map<String, Any>, vararg fieldPaths: String): PagedQuery<T>

Fluent addFacet for an ENUM facet, using dot-notation paths.