File tree Expand file tree Collapse file tree 9 files changed +21
-21
lines changed
manual/source/reference/operator/aggregation
v6.0/source/reference/operator/aggregation
v7.0/source/reference/operator/aggregation Expand file tree Collapse file tree 9 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ collection to populate test data:
59
59
.. code-block:: javascript
60
60
61
61
db.getSiblingDB("examples").sensors.insertMany([
62
- { "_id" : 1, "reading" : NumberDecimal(26.0) },
62
+ { "_id" : 1, "reading" : NumberDecimal(" 26.0" ) },
63
63
{ "_id" : 2, "reading" : NumberLong(25.0) },
64
64
{ "_id" : 3, "reading" : NumberInt(24) },
65
65
{ "_id" : 4, "reading" : 24.0 },
66
66
{ "_id" : 5, "reading" : "24" },
67
- { "_id" : 6, "reading" : [ NumberDecimal(26 ) ]}
67
+ { "_id" : 6, "reading" : [ NumberDecimal("26" ) ]}
68
68
])
69
69
70
70
The following aggregation uses the :pipeline:`$addFields` aggregation
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ Example
128
128
"_id" : ObjectId("5c50782193f833234ba90d85"),
129
129
"angle_a" : NumberDecimal("53.13010235415597870314438744090659"),
130
130
"side_a" : NumberDecimal("3")
131
- "side_b" : NumberDecimal(4.000000000000000000000000000000000")
131
+ "side_b" : NumberDecimal(" 4.000000000000000000000000000000000")
132
132
}
133
133
134
134
Since ``angle_a`` and ``side_a`` are stored as
Original file line number Diff line number Diff line change @@ -394,10 +394,10 @@ Examples
394
394
.. code-block:: javascript
395
395
:copyable: false
396
396
397
- { _id" : "M", averagePrice: NumberDecimal("120") }
398
- { _id" : "L", averagePrice: NumberDecimal("80") }
399
- { _id" : "S", averagePrice: NumberDecimal("80") }
400
- { _id" : null, averagePrice: NumberDecimal("45.25") }
397
+ { _id : "M", averagePrice: NumberDecimal("120") }
398
+ { _id : "L", averagePrice: NumberDecimal("80") }
399
+ { _id : "S", averagePrice: NumberDecimal("80") }
400
+ { _id : null, averagePrice: NumberDecimal("45.25") }
401
401
402
402
.. seealso::
403
403
Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ collection to populate test data:
59
59
.. code-block:: javascript
60
60
61
61
db.getSiblingDB("examples").sensors.insertMany([
62
- { "_id" : 1, "reading" : NumberDecimal(26.0) },
62
+ { "_id" : 1, "reading" : NumberDecimal(" 26.0" ) },
63
63
{ "_id" : 2, "reading" : NumberLong(25.0) },
64
64
{ "_id" : 3, "reading" : NumberInt(24) },
65
65
{ "_id" : 4, "reading" : 24.0 },
66
66
{ "_id" : 5, "reading" : "24" },
67
- { "_id" : 6, "reading" : [ NumberDecimal(26 ) ]}
67
+ { "_id" : 6, "reading" : [ NumberDecimal("26" ) ]}
68
68
])
69
69
70
70
The following aggregation uses the :pipeline:`$addFields` aggregation
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ Example
128
128
"_id" : ObjectId("5c50782193f833234ba90d85"),
129
129
"angle_a" : NumberDecimal("53.13010235415597870314438744090659"),
130
130
"side_a" : NumberDecimal("3")
131
- "side_b" : NumberDecimal(4.000000000000000000000000000000000")
131
+ "side_b" : NumberDecimal(" 4.000000000000000000000000000000000")
132
132
}
133
133
134
134
Since ``angle_a`` and ``side_a`` are stored as
Original file line number Diff line number Diff line change @@ -394,10 +394,10 @@ Examples
394
394
.. code-block:: javascript
395
395
:copyable: false
396
396
397
- { _id" : "M", averagePrice: NumberDecimal("120") }
398
- { _id" : "L", averagePrice: NumberDecimal("80") }
399
- { _id" : "S", averagePrice: NumberDecimal("80") }
400
- { _id" : null, averagePrice: NumberDecimal("45.25") }
397
+ { _id : "M", averagePrice: NumberDecimal("120") }
398
+ { _id : "L", averagePrice: NumberDecimal("80") }
399
+ { _id : "S", averagePrice: NumberDecimal("80") }
400
+ { _id : null, averagePrice: NumberDecimal("45.25") }
401
401
402
402
.. seealso::
403
403
Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ collection to populate test data:
59
59
.. code-block:: javascript
60
60
61
61
db.getSiblingDB("examples").sensors.insertMany([
62
- { "_id" : 1, "reading" : NumberDecimal(26.0) },
62
+ { "_id" : 1, "reading" : NumberDecimal(" 26.0" ) },
63
63
{ "_id" : 2, "reading" : NumberLong(25.0) },
64
64
{ "_id" : 3, "reading" : NumberInt(24) },
65
65
{ "_id" : 4, "reading" : 24.0 },
66
66
{ "_id" : 5, "reading" : "24" },
67
- { "_id" : 6, "reading" : [ NumberDecimal(26 ) ]}
67
+ { "_id" : 6, "reading" : [ NumberDecimal("26" ) ]}
68
68
])
69
69
70
70
The following aggregation uses the :pipeline:`$addFields` aggregation
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ Example
128
128
"_id" : ObjectId("5c50782193f833234ba90d85"),
129
129
"angle_a" : NumberDecimal("53.13010235415597870314438744090659"),
130
130
"side_a" : NumberDecimal("3")
131
- "side_b" : NumberDecimal(4.000000000000000000000000000000000")
131
+ "side_b" : NumberDecimal(" 4.000000000000000000000000000000000")
132
132
}
133
133
134
134
Since ``angle_a`` and ``side_a`` are stored as
Original file line number Diff line number Diff line change @@ -394,10 +394,10 @@ Examples
394
394
.. code-block:: javascript
395
395
:copyable: false
396
396
397
- { _id" : "M", averagePrice: NumberDecimal("120") }
398
- { _id" : "L", averagePrice: NumberDecimal("80") }
399
- { _id" : "S", averagePrice: NumberDecimal("80") }
400
- { _id" : null, averagePrice: NumberDecimal("45.25") }
397
+ { _id : "M", averagePrice: NumberDecimal("120") }
398
+ { _id : "L", averagePrice: NumberDecimal("80") }
399
+ { _id : "S", averagePrice: NumberDecimal("80") }
400
+ { _id : null, averagePrice: NumberDecimal("45.25") }
401
401
402
402
.. seealso::
403
403
You can’t perform that action at this time.
0 commit comments