I don\'t know if there is a word for this, guess there is, but right now I couldn\'t explain it better than \"where array contains item(s) from array\".
It might sou
You can do something like this: For each item in ZipCodes, you get a zip and compare with the array of codes you are checking. This, IMHO, is much better than using UDF.
{
query: '
SELECT DISTINCT value r
FROM root r
JOIN zip IN r.zipCodes
WHERE ARRAY_CONTAINS(@zipIds, zip, true)
',
parameters: [{name: "@zipIds", value: zipIds}]
}
The last param of ARRAY_CONTAINS tells the function to accept partial matches.