Home > doofinder > QueryFilter > add

QueryFilter.add() method

Add a value to filter by a field.

Signature:

add(name: string, value: unknown): void;

Parameters

Parameter Type Description
name string Name of the filter.
value unknown Value to add to the filter.

Returns:

void

Remarks

  • If the filter does not exist, it is created. - If the value is an object, the value for the filter is replaced. - Otherwise is supposed to be a Set of terms / numbers.