Refines a query to match items whose specified property contains any of the specified value
parameters.
The hasSome()
function refines a WixBookingsQueryBuilder
to
only match items where any of the values of the array of the specified property equal any of
the specified values.
Matching strings with hasSome()
is case sensitive, so "text"
is not equal to "Text"
.
function hasSome(
propertyName: string,
value: Array<string>,
): WixBookingsQueryBuilder;
The property whose values will be compared with value
.
The values to match against.
let query = bookings
.queryBookings()
.hasSome("status", ["PENDING_CHECKOUT", "PENDING", "PENDING_APPROVAL"]);
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.