← Back to Stormify Documentation

facet

fun facet(vararg paths: ScalarPath): PagedList<T>

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


fun facet(vararg fieldPaths: String): PagedList<T>

Fluent addFacet: one facet over fieldPaths (dot notation), OR-combined when more than one.


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

Fluent addFacet with an explicit type.


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

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


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

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


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

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