Modules

advancedfiltering

2min

advancedFiltering(conditions, filterType?): KlevuFetchModifer

Create advanced filtering to the query.

Parameters

Name

Type

Default value

Description

conditions

{ excludeValuesInResult?: boolean ; key: string ; singleSelect: boolean ; valueOperator: "INCLUDE" | "EXCLUDE" ; values: string[] }[]

undefined

Array of conditions to apply to the query.

filterType

"ALL_OF" | "ANY_OF" | "NONE_OF"

"ALL_OF"

How conditions should be applied. Default is ALL_OF

Returns

KlevuFetchModifer

Defined in

Updated 25 Mar 2024
Did this page help you?