File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed
source/reference/pipeline Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "restructuredtext.confPath" : " "
3
+ }
Original file line number Diff line number Diff line change @@ -646,24 +646,23 @@ pipeline that ends with the |out| stage in the background.
646
646
.. example::
647
647
648
648
.. code-block:: json
649
- :emphasize-lines: 16
650
-
651
- db.foo.aggregate([
652
- {
653
- "$out" : {
654
- "s3" : {
655
- "bucket" : "my-s3-bucket",
656
- "region" : "us-east-1",
657
- "filename" : {
658
- "$toString" : "$sale-date"
659
- },
660
- "format" : {
661
- "name" : "json"
662
- }
663
- }
649
+ :emphasize-lines: 13
650
+
651
+
652
+ db.mySampleData.aggregate(
653
+ [
654
+ {
655
+ "$out": {
656
+ "atlas": {
657
+ "clusterName":"myTestCluster",
658
+ "db":"sampleDB",
659
+ "coll":"mySampleData"
660
+ }
661
+ }
664
662
}
665
- }
666
- ], { background: true })
663
+ ],
664
+ { "background" : true }
665
+ )
667
666
668
667
|out| writes to |json| files in the root of the bucket in the
669
668
background. Each |json| file contains all of the documents
You can’t perform that action at this time.
0 commit comments