Refines a query to match items whose specified property contains any of the specified values.
The hasSome()
function refines a JoinGroupRequestsQueryBuilder
to match only items where the value of the specified propertyName
equals any of the specified values
.
Matching strings with hasSome()
is case-sensitive, so 'text'
isn't equal to 'Text'
.
If the specified property is an array, hasSome()
matches if any of that array's elements equal any of the specified values.
function hasSome(
propertyName: string,
value: Array<any>,
): JoinGroupRequestsQueryBuilder;
Property whose value is compared with values
.
const query = joinGroupRequests.queryJoinGroupRequests.hasSome("labelIds", [
"red",
"blue",
"purple",
]);
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
Refines a query to only match items where the specified property conatins any of the values in the provided array of values.
The in()
function refines a JoinGroupRequestsQueryBuilder
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): JoinGroupRequestsQueryBuilder
const query = joinGroupRequests.queryJoinGroupRequests.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.