Sets the dataset filter.
setFilter() filters out items that don't match the filter
criteria.
A filter object is created by calling filter()
on wixData and chaining one or more of the following Wix Data
filter functions.
Setting a dataset's filter overrides existing filters that were previously
set using setFilter() or using the Dataset Settings
panel in the Editor.
To clear a dataset's current filter, call setFilter() and pass it an
empty filter. You create an empty filter by calling the filter()
function without chaining any of the additional filter functions mentioned above.
Calling setFilter() on a write-only dataset causes an error.
You will need to import wix-data in order to create a WixDataFilter object.
Notes:
WixDataFilter object created by calling the filter() function and not a WixDataQuery object created by calling the query() function.A filter object.