Refines a query to only match items where the specified property contains any of the values in the provided array of values.
The in()
function refines a ContactsQueryBuilder
to match only items where the specified propertyName
is equal to any of the values in the provided array.
Matching strings with in()
is case-sensitive, so 'text'
isn't equal to 'Text'
.
function in(propertyName: string, value: any): ContactsQueryBuilder
const query = contacts
.queryContacts()
.in(["labelIds", "colors"], ["red", "blue", "purple"]);
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.