Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.21 KB

is-array.md

File metadata and controls

53 lines (36 loc) · 1.21 KB
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

IS_ARRAY (NoSQL query)

[!INCLUDENoSQL]

Returns a boolean value indicating if the type of the specified expression is an array.

Syntax

IS_ARRAY(<expr>)  

Arguments

Description
expr Any expression.

Return types

Returns a boolean expression.

Examples

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":::

Remarks

Related content