hasSome( )


Refines a query to match items whose specified property contains any of the specified value parameters.

The hasSome() function refines a PublicPlansQueryBuilder 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".

Method Declaration
Copy
Method Parameters
propertyNamestringRequired

The property whose values will be compared with values. The property type must be an array of strings. Supported property: _id


valuesArray<string>Required

The values to match against.

Returns
Did this help?