Skip to content

Commit f7a1bfc

Browse files
Merge pull request #265753 from seesharprun/cosmos-nosql-metadata
Cosmos DB | [BULK] Update NoSQL query metadata
2 parents 2e4af8c + fd00bcb commit f7a1bfc

File tree

133 files changed

+605
-472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+605
-472
lines changed

articles/cosmos-db/nosql/query/abs.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns the absolute (positive) value of the specified numeric expression.
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ABS(<numeric_expr>)
2526
```
2627

@@ -38,7 +39,7 @@ Returns a numeric expression.
3839

3940
The following example shows the results of using this function on three different numbers.
4041

41-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/absolute-value/query.sql" highlight="2-4":::
42+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/absolute-value/query.sql" highlight="2-4":::
4243

4344
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/absolute-value/result.json":::
4445

articles/cosmos-db/nosql/query/acos.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns the trigonometric arccosine of the specified numeric value. The arccosin
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ACOS(<numeric_expr>)
2526
```
2627

@@ -38,7 +39,7 @@ Returns a numeric expression.
3839

3940
The following example calculates the arccosine of the specified values using the function.
4041

41-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/arccosine/query.sql" highlight="2":::
42+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/arccosine/query.sql" highlight="2":::
4243

4344
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/arccosine/result.json":::
4445

articles/cosmos-db/nosql/query/array-concat.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns an array that is the result of concatenating two or more array values.
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ARRAY_CONCAT(<array_expr_1>, <array_expr_2> [, <array_expr_N>])
2526
```
2627

@@ -43,7 +44,7 @@ Returns an array expression.
4344

4445
The following example shows how to concatenate two arrays.
4546

46-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/array-concat/query.sql" highlight="2":::
47+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/array-concat/query.sql" highlight="2":::
4748

4849
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/array-concat/result.json":::
4950

articles/cosmos-db/nosql/query/array-contains.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns a boolean indicating whether the array contains the specified value. You
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ARRAY_CONTAINS(<array_expr>, <expr> [, <bool_expr>])
2526
```
2627

@@ -40,7 +41,7 @@ Returns a boolean value.
4041

4142
The following example illustrates how to check for specific values or objects in an array using this function.
4243

43-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/array-contains/query.sql" highlight="2-7":::
44+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/array-contains/query.sql" highlight="2-7":::
4445

4546
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/array-contains/result.json":::
4647

articles/cosmos-db/nosql/query/array-length.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns the number of elements in the specified array expression.
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ARRAY_LENGTH(<array_expr>)
2526
```
2627

@@ -38,7 +39,7 @@ Returns a numeric expression.
3839

3940
The following example illustrates how to get the length of an array using the function.
4041

41-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/array-length/query.sql" highlight="2-4":::
42+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/array-length/query.sql" highlight="2-4":::
4243

4344
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/array-length/result.json":::
4445

articles/cosmos-db/nosql/query/array-slice.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns a subset of an array expression using the index and length specified.
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ARRAY_SLICE(<array_expr>, <numeric_expr_1> [, <numeric_expr_2>])
2526
```
2627

@@ -40,7 +41,7 @@ Returns an array expression.
4041

4142
The following example shows how to get different slices of an array using the function.
4243

43-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/array-slice/query.sql" highlight="2-9":::
44+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/array-slice/query.sql" highlight="2-9":::
4445

4546
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/array-slice/result.json":::
4647

articles/cosmos-db/nosql/query/asin.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns the trigonometric arcsine of the specified numeric value. The arcsine is
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ASIN(<numeric_expr>)
2526
```
2627

@@ -38,7 +39,7 @@ Returns a numeric expression.
3839

3940
The following example calculates the arcsine of the specified angle using the function.
4041

41-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/asin/query.sql" highlight="2":::
42+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/asin/query.sql" highlight="2":::
4243

4344
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/asin/result.json":::
4445

articles/cosmos-db/nosql/query/atan.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns the trigonometric arctangent of the specified numeric value. The arcsine
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ATAN(<numeric_expr>)
2526
```
2627

@@ -38,7 +39,7 @@ Returns a numeric expression.
3839

3940
The following example calculates the arctangent of the specified angle using the function.
4041

41-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/atan/query.sql" highlight="2":::
42+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/atan/query.sql" highlight="2":::
4243

4344
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/atan/result.json":::
4445

articles/cosmos-db/nosql/query/atn2.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns the principal value of the arctangent of `y/x`, expressed in radians.
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
ATN2(<numeric_expr>, <numeric_expr>)
2526
```
2627

@@ -39,7 +40,7 @@ Returns a numeric expression.
3940

4041
The following example calculates the arctangent for the specified `x` and `y` components.
4142

42-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/atn2/query.sql" highlight="2":::
43+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/atn2/query.sql" highlight="2":::
4344

4445
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/atn2/result.json":::
4546

articles/cosmos-db/nosql/query/average.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ms.reviewer: sidandrews
88
ms.service: cosmos-db
99
ms.subservice: nosql
1010
ms.topic: reference
11-
ms.date: 09/21/2023
11+
ms.devlang: nosql
12+
ms.date: 02/27/2024
1213
ms.custom: query-reference
1314
---
1415

@@ -20,7 +21,7 @@ Returns the average of the values in the expression.
2021

2122
## Syntax
2223

23-
```sql
24+
```nosql
2425
AVG(<numeric_expr>)
2526
```
2627

@@ -42,7 +43,7 @@ For this example, consider a container with multiple items that each contain a `
4243

4344
In this example, the function is used to average the values of a specific field into a single aggregated value.
4445

45-
:::code language="sql" source="~/cosmos-db-nosql-query-samples/scripts/average/query.sql" highlight="2":::
46+
:::code language="nosql" source="~/cosmos-db-nosql-query-samples/scripts/average/query.sql" highlight="2":::
4647

4748
:::code language="json" source="~/cosmos-db-nosql-query-samples/scripts/average/result.json":::
4849

0 commit comments

Comments
 (0)