using array contains cloud_firestore code example
Example 1: php nested array contains
in_array($search, array_column($array, 'name'))
Example 2: string contains in javascript
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
Example 3: java list contains object with property
boolean found = list.stream()
.anyMatch(p -> p.name.equals(personName));