Home > doofinder > QueryFilter
QueryFilter class
Manage filters applied to a query.
Signature:
export declare class QueryFilter
Methods
| Method | Modifiers | Description |
|---|---|---|
| add(name, value) | Add a value to filter by a field. | |
| clear() | Clear all filters. | |
| contains(name, value) | Check whether there’s a filter for the provided name and it contains the provided value or not. | |
| dump() | Dump all filters as an object. | |
| equals(name, value) | Check whether there’s a filter for the provided name and it’s equal to the provided value or not. | |
| get(name) | Retrieve the value of a filter. | |
| has(name) | Check whether there’s a filter for the provided name or not. | |
| remove(name, value) | Remove a filter by a field. | |
| set(name, value) | Set the value of a filter. | |
| setMany(data, replace) | Set multiple filters at once. |