Skip to content

Commit 0dd37de

Browse files
committed
user feedback (#893)
(cherry picked from commit b815a9c)
1 parent f747033 commit 0dd37de

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

source/fundamentals/gridfs.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ Upload Files
103103

104104
Use the ``openUploadStream()`` method from ``GridFSBucket`` to create an upload
105105
stream for a given file name. You can use the ``pipe()`` method to
106-
connect a Node.js ``fs`` read stream to the upload stream. The
106+
connect a Node.js read stream to the upload stream. The
107107
``openUploadStream()`` method allows you to specify configuration information
108-
such as file chunk size and other field/value pairs to store as metadata. Set
109-
these options as parameters of ``openUploadStream()`` as shown in the
110-
following code snippet:
108+
such as file chunk size and other field/value pairs to store as metadata.
109+
110+
The following example shows how to pipe a Node.js read stream, represented by the
111+
variable ``fs``, to the ``openUploadStream()`` method of a ``GridFSBucket`` instance:
111112

112113
.. code-block:: javascript
113114

source/includes/aggregation/filtered-subset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function run() {
88
const aggDB = client.db("agg_tutorials_db");
99

1010
// start-collection
11-
const personColl = await aggDB.collection("persons");
11+
const personColl = aggDB.collection("persons");
1212
// end-collection
1313

1414
// start-insert-persons

source/includes/aggregation/group-total.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function run() {
88
const aggDB = client.db("agg_tutorials_db");
99

1010
// start-coll
11-
const ordersColl = await aggDB.collection("orders");
11+
const ordersColl = aggDB.collection("orders");
1212
// end-coll
1313

1414
// start-insert-orders

source/includes/aggregation/multi-field-join.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ async function run() {
88
const aggDB = client.db("agg_tutorials_db");
99

1010
// start-colls
11-
const productsColl = await aggDB.collection("products");
12-
const ordersColl = await aggDB.collection("orders");
11+
const productsColl = aggDB.collection("products");
12+
const ordersColl = aggDB.collection("orders");
1313
// end-colls
1414

1515
// start-insert-products

source/includes/aggregation/one-to-one-join.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ async function run() {
88
const aggDB = client.db("agg_tutorials_db");
99

1010
// start-colls
11-
const ordersColl = await aggDB.collection("orders");
12-
const productsColl = await aggDB.collection("products");
11+
const ordersColl = aggDB.collection("orders");
12+
const productsColl = aggDB.collection("products");
1313
// end-colls
1414

1515
// start-insert-orders

source/includes/aggregation/unpack-arrays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function run() {
88
const aggDB = client.db("agg_tutorials_db");
99

1010
// start-coll
11-
const ordersColl = await aggDB.collection("orders");
11+
const ordersColl = aggDB.collection("orders");
1212
// end-coll
1313

1414
// start-insert-orders

0 commit comments

Comments
 (0)