hasAll( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Filters pipeline data to match items where the values of the specified field equal all of the specified values.

The hasAll() method refines the filter to only match items where the value of the specified field equals all of the specified values.

Matching strings with hasAll() is case sensitive, so "text" is not considered equal to "Text".

If the value of the specified field is an array, hasAll() matches items where all the elements of that array match all of the specified values.

You can specify a list of values to match by providing an array of strings, numbers, or dates.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with the specified values.


valuesArray<Comparable>Required

Values to match.

Returns
Return Type:FilterStage
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?