File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,10 @@ A ``books`` collection has the following documents:
102
102
103
103
.. code-block:: javascript
104
104
105
- { "_id" : 1, "title" : "Dracula", "condition": "new" }
106
- { "_id" : 2, "title" : "The Little Prince", "condition": "new" }
105
+ db.books.insertMany([
106
+ { "_id" : 1, "title" : "Dracula", "condition": "new" },
107
+ { "_id" : 2, "title" : "The Little Prince", "condition": "new" }
108
+ ])
107
109
108
110
The :expression:`{ $literal: 1 } <$literal>` expression returns a new
109
111
``editionNumber`` field set to the value ``1``:
@@ -117,6 +119,7 @@ The :expression:`{ $literal: 1 } <$literal>` expression returns a new
117
119
The operation results in the following documents:
118
120
119
121
.. code-block:: javascript
122
+ :copyable: false
120
123
121
124
{ "_id" : 1, "title" : "Dracula", "editionNumber" : 1 }
122
125
{ "_id" : 2, "title" : "The Little Prince", "editionNumber" : 1 }
You can’t perform that action at this time.
0 commit comments