hasSome( )

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

The hasSome() function refines a SessionQueryBuilder to only match items where the value of the specified property equals any of the specified values in the array.

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

You can specify a list of values to match by providing comma-separated String types as the value parameters. You can also specify a list of these values by including them in an array and providing the array as the value.

Method Declaration
Copy
Method Parameters
propertyNamestringRequired

The property whose values will be compared with value.

Supported properties:

  • sessionId
  • type
  • tags

valueArray<string>Required

The values to match against.

Returns
Was this helpful?
Yes
No