REVERSE (Azure Cosmos DB)

Returns the reverse order of a string value.

Syntax

REVERSE(<str_expr>)  

Arguments

str_expr
Is a string expression.

Return types

Returns a string expression.

Examples

The following example shows how to use REVERSE in a query.

SELECT REVERSE("Abc") AS reverse  

Here is the result set.

[{"reverse": "cbA"}]  

Remarks

This system function will not utilize the index.

Next steps