Skip to content

Commit 8714e3b

Browse files
committed
DOCS-11386, DOCS-11446, DOCS-11380, DOCS-11383: $convert and shorthand
1 parent 2c1c243 commit 8714e3b

File tree

13 files changed

+2449
-0
lines changed

13 files changed

+2449
-0
lines changed

source/includes/ref-toc-aggregation-operators.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ description: |
8686
Accepts either three expressions in an ordered list or three named
8787
parameters.
8888
---
89+
name: :expression:`$convert`
90+
file: /reference/operator/aggregation/convert
91+
description: |
92+
Converts a value to a specified type.
93+
---
8994
name: :expression:`$dateFromParts`
9095
file: /reference/operator/aggregation/dateFromParts
9196
description: |
@@ -544,6 +549,47 @@ description: |
544549
Evaluates a series of case expressions. When it finds an expression
545550
which evaluates to ``true``, ``$switch`` executes a specified
546551
expression and breaks out of the control flow.
552+
553+
---
554+
name: :expression:`$toBool`
555+
file: /reference/operator/aggregation/toBool
556+
description: |
557+
Converts value to a boolean.
558+
---
559+
name: :expression:`$toDate`
560+
file: /reference/operator/aggregation/toDate
561+
description: |
562+
Converts value to a Date.
563+
---
564+
name: :expression:`$toDecimal`
565+
file: /reference/operator/aggregation/toDecimal
566+
description: |
567+
Converts value to a Decimal128.
568+
---
569+
name: :expression:`$toDouble`
570+
file: /reference/operator/aggregation/toDouble
571+
description: |
572+
Converts value to a double.
573+
---
574+
name: :expression:`$toInt`
575+
file: /reference/operator/aggregation/toInt
576+
description: |
577+
Converts value to an integer.
578+
---
579+
name: :expression:`$toLong`
580+
file: /reference/operator/aggregation/toLong
581+
description: |
582+
Converts value to a long.
583+
---
584+
name: :expression:`$toObjectId`
585+
file: /reference/operator/aggregation/toObjectId
586+
description: |
587+
Converts value to an ObjectId.
588+
---
589+
name: :expression:`$toString`
590+
file: /reference/operator/aggregation/toString
591+
description: |
592+
Converts value to a string.
547593
---
548594
name: :expression:`$toLower`
549595
file: /reference/operator/aggregation/toLower

0 commit comments

Comments
 (0)