CRUDSchemaField
@facetedSearch
Use the @facetedSearch to enable faceted search on a field.
This directive requires the @searchable directive to be enabled on the type.
@searchable
Example
type User @crudType @searchable {
name: String!
age: Int! @facetedSearch
}In this case, the age field will be available for faceted search (aggregation) via elasticsearch.