hasSome( )


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

The hasSome() function refines a ContactsQueryBuilder 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 in most instances, so "text" is not equal to "Text". One exception is email fields, which are case insensitive when matching with hasSome().

Method Declaration
Copy
Method Parameters
propertyNamestringRequired

The property whose value will be compared with value.

Supported properties:

  • "_id"
  • "primaryInfo.email"
  • "primaryInfo.phone"
  • "info.name.first"
  • "info.name.last"
  • "info.emails.email"
  • "info.phones.phone"
  • "info.addresses.street"
  • "info.addresses.city"
  • "info.addresses.subdivision"
  • "info.addresses.country"
  • "info.company"
  • "info.jobTitle"
  • "info.locale"
  • "info.labelKeys"

valuesArray<string>Required

The values to match against.

Returns
Did this help?