Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.2 KB

is-string.md

File metadata and controls

53 lines (36 loc) · 1.2 KB
title titleSuffix description author ms.author ms.reviewer ms.service ms.subservice ms.topic ms.devlang ms.date ms.custom
IS_STRING
Azure Cosmos DB for NoSQL
An Azure Cosmos DB for NoSQL system function that returns true if the type of the specified expression is a string.
jcodella
jacodel
sidandrews
cosmos-db
nosql
reference
nosql
02/27/2024
query-reference

IS_STRING (NoSQL query)

[!INCLUDENoSQL]

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

Syntax

IS_STRING(<expr>)  

Arguments

Description
expr Any expression.

Return types

Returns a boolean expression.

Examples

The following example various values to see if they're a string.

:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/is-string/query.sql" highlight="2-10":::

:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/is-string/result.json":::

Remarks

Related content