hasSome( )


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

The hasSome() function refines an EventsQueryBuilder to only match items where any of the values of the array of the specified property equal any of the specified values.

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

Method Declaration
Copy
Method Parameters
propertyNamestringRequired

The property whose value will be compared with value.

Supported properties:

  • _id
  • title
  • createdBy
  • status
  • slug

valuesArray<string>Required

The value to match against.

Returns
Return Type:EventsQueryBuilder
Was this helpful?
Yes
No