@@ -4,12 +4,12 @@ In :binary:`~bin.mongosh`, create a sample collection named
4
4
.. code-block :: javascript
5
5
6
6
db .sales .insertMany ([
7
- { " _id" : 1 , " item" : " abc" , " price" : NumberDecimal (" 10" ), " quantity" : NumberInt (" 2" ), " date" : ISODate (" 2014-03-01T08:00:00Z" ) },
8
- { " _id" : 2 , " item" : " jkl" , " price" : NumberDecimal (" 20" ), " quantity" : NumberInt (" 1" ), " date" : ISODate (" 2014-03-01T09:00:00Z" ) },
9
- { " _id" : 3 , " item" : " xyz" , " price" : NumberDecimal (" 5" ), " quantity" : NumberInt ( " 10" ), " date" : ISODate (" 2014-03-15T09:00:00Z" ) },
10
- { " _id" : 4 , " item" : " xyz" , " price" : NumberDecimal (" 5" ), " quantity" : NumberInt (" 20" ) , " date" : ISODate (" 2014-04-04T11:21:39.736Z" ) },
11
- { " _id" : 5 , " item" : " abc" , " price" : NumberDecimal (" 10" ), " quantity" : NumberInt (" 10" ) , " date" : ISODate (" 2014-04-04T21:23:13.331Z" ) },
12
- { " _id" : 6 , " item" : " def" , " price" : NumberDecimal (" 7.5" ), " quantity" : NumberInt (" 5" ) , " date" : ISODate (" 2015-06-04T05:08:13Z" ) },
13
- { " _id" : 7 , " item" : " def" , " price" : NumberDecimal (" 7.5" ), " quantity" : NumberInt (" 10" ) , " date" : ISODate (" 2015-09-10T08:43:00Z" ) },
14
- { " _id" : 8 , " item" : " abc" , " price" : NumberDecimal (" 10" ), " quantity" : NumberInt (" 5" ) , " date" : ISODate (" 2016-02-06T20:20:13Z" ) },
7
+ { " _id" : 1 , " item" : " abc" , " price" : Decimal128 (" 10" ), " quantity" : Int32 (" 2" ), " date" : ISODate (" 2014-03-01T08:00:00Z" ) },
8
+ { " _id" : 2 , " item" : " jkl" , " price" : Decimal128 (" 20" ), " quantity" : Int32 (" 1" ), " date" : ISODate (" 2014-03-01T09:00:00Z" ) },
9
+ { " _id" : 3 , " item" : " xyz" , " price" : Decimal128 (" 5" ), " quantity" : Int32 ( " 10" ), " date" : ISODate (" 2014-03-15T09:00:00Z" ) },
10
+ { " _id" : 4 , " item" : " xyz" , " price" : Decimal128 (" 5" ), " quantity" : Int32 (" 20" ) , " date" : ISODate (" 2014-04-04T11:21:39.736Z" ) },
11
+ { " _id" : 5 , " item" : " abc" , " price" : Decimal128 (" 10" ), " quantity" : Int32 (" 10" ) , " date" : ISODate (" 2014-04-04T21:23:13.331Z" ) },
12
+ { " _id" : 6 , " item" : " def" , " price" : Decimal128 (" 7.5" ), " quantity" : Int32 (" 5" ) , " date" : ISODate (" 2015-06-04T05:08:13Z" ) },
13
+ { " _id" : 7 , " item" : " def" , " price" : Decimal128 (" 7.5" ), " quantity" : Int32 (" 10" ) , " date" : ISODate (" 2015-09-10T08:43:00Z" ) },
14
+ { " _id" : 8 , " item" : " abc" , " price" : Decimal128 (" 10" ), " quantity" : Int32 (" 5" ) , " date" : ISODate (" 2016-02-06T20:20:13Z" ) },
15
15
])
0 commit comments