Skip to content

Commit 624a120

Browse files
authored
(DOCSP-20551) Corrects background example (#228)
1 parent 2ff0587 commit 624a120

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"restructuredtext.confPath": ""
3+
}

source/reference/pipeline/out.txt

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -646,24 +646,23 @@ pipeline that ends with the |out| stage in the background.
646646
.. example::
647647

648648
.. 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+
}
664662
}
665-
}
666-
], { background: true })
663+
],
664+
{ "background" : true }
665+
)
667666

668667
|out| writes to |json| files in the root of the bucket in the
669668
background. Each |json| file contains all of the documents

0 commit comments

Comments
 (0)