title | titleSuffix | description | author | ms.author | ms.reviewer | ms.service | ms.subservice | ms.topic | ms.devlang | ms.date | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|
IS_ARRAY |
Azure Cosmos DB for NoSQL |
An Azure Cosmos DB for NoSQL system function that returns a boolean indicating whether an expression is an array. |
jcodella |
jacodel |
sidandrews |
cosmos-db |
nosql |
reference |
nosql |
02/27/2024 |
query-reference |
[!INCLUDENoSQL]
Returns a boolean value indicating if the type of the specified expression is an array.
IS_ARRAY(<expr>)
Description | |
---|---|
expr |
Any expression. |
Returns a boolean expression.
The following example checks objects of various types using the function.
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/is-array/query.sql" highlight="2-10":::
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/is-array/result.json":::
- This function benefits from a range index.