File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
reference/operator/aggregation Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -731,7 +731,7 @@ The following table lists some conversion to date examples:
731
731
- "Could not convert to type date."
732
732
733
733
734
- .. seealso:: :expression:`$toDate` operator, :expression:`$dateFromString() `
734
+ .. seealso:: :expression:`$toDate` operator, :expression:`$dateFromString`
735
735
736
736
.. _convert-to-objectId:
737
737
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Definition
43
43
44
44
{ $convert: { input: <expression>, to: "date" } }
45
45
46
- .. seealso:: :expression:`$convert`
46
+ .. seealso:: :expression:`$convert` and :expression:`$dateFromString`
47
47
48
48
49
49
Behavior
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Definition
39
39
40
40
{ $convert: { input: <expression>, to: "string" } }
41
41
42
- .. seealso:: :expression:`$convert`
42
+ .. seealso:: :expression:`$convert` and :expression:`$dateToString`
43
43
44
44
45
45
Behavior
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ A collection's values can be transformed to the ``decimal`` type by
110
110
performing a one-time transformation or by modifying application logic
111
111
to perform the transformation as it accesses records.
112
112
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
+
113
119
One-Time Collection Transformation
114
120
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115
121
You can’t perform that action at this time.
0 commit comments