Skip to content

Commit 4446cf9

Browse files
committed
DOCS-11501: add links to $convert
1 parent e398e45 commit 4446cf9

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

source/reference/operator/aggregation/convert.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ The following table lists some conversion to date examples:
731731
- "Could not convert to type date."
732732

733733

734-
.. seealso:: :expression:`$toDate` operator, :expression:`$dateFromString()`
734+
.. seealso:: :expression:`$toDate` operator, :expression:`$dateFromString`
735735

736736
.. _convert-to-objectId:
737737

source/reference/operator/aggregation/toDate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Definition
4343

4444
{ $convert: { input: <expression>, to: "date" } }
4545

46-
.. seealso:: :expression:`$convert`
46+
.. seealso:: :expression:`$convert` and :expression:`$dateFromString`
4747

4848

4949
Behavior

source/reference/operator/aggregation/toString.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Definition
3939

4040
{ $convert: { input: <expression>, to: "string" } }
4141

42-
.. seealso:: :expression:`$convert`
42+
.. seealso:: :expression:`$convert` and :expression:`$dateToString`
4343

4444

4545
Behavior

source/tutorial/model-monetary-data.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ A collection's values can be transformed to the ``decimal`` type by
110110
performing a one-time transformation or by modifying application logic
111111
to perform the transformation as it accesses records.
112112

113+
.. tip::
114+
115+
Alternative to the procedure outlined below, starting in version
116+
4.0, you can use the :expression:`$convert` and its helper
117+
:expression:`$toDecimal` operator to convert values to ``NumberDecimal()``.
118+
113119
One-Time Collection Transformation
114120
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115121

0 commit comments

Comments
 (0)