r[ae]ym
ProjectionsSchemaField

@facetedSearch

Use the @facetedSearch to enable faceted search on a field.

This directive requires the @searchable directive to be enabled on the projection. @searchable

Example

user.graphql
type User @upsertOn(...) @searchable {
    name: String!
	age: Int! @facetedSearch
}

In this case, the age field will be available for faceted search (aggregation) via elasticsearch.

On this page