Query Filter
Adds a filter clause onto a query
Description
In SQL terms the Query Filter corresponds to adding a WHERE
clause.
For filter types Contains
and Regex
, it sets case sensitivity to true
. In case you need to apply those filters without case sensitivity, use specific bricks (aka: Query Filter Contains
and Query Filter Regex
).
Example
If we want to keep only objects for which myProperty = 14
, then we would set property
to myProperty
, filter type
to equals
, and value
to the number 14.
Inputs
- query (Query): The query to which the filter must be added
- property (Property): The property used by the filter
- filter type (Filter Type): The operation performed on the property
- value (Object): The value to which the property is compared
Outputs
- query (Query): The updated query