Skip to content

Commit

Permalink
user feedback (#893)
Browse files Browse the repository at this point in the history
(cherry picked from commit b815a9c)
  • Loading branch information
mongoKart committed Jun 5, 2024
1 parent 96ec037 commit 5568548
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
9 changes: 5 additions & 4 deletions source/fundamentals/gridfs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ Upload Files

Use the ``openUploadStream()`` method from ``GridFSBucket`` to create an upload
stream for a given file name. You can use the ``pipe()`` method to
connect a Node.js ``fs`` read stream to the upload stream. The
connect a Node.js read stream to the upload stream. The
``openUploadStream()`` method allows you to specify configuration information
such as file chunk size and other field/value pairs to store as metadata. Set
these options as parameters of ``openUploadStream()`` as shown in the
following code snippet:
such as file chunk size and other field/value pairs to store as metadata.

The following example shows how to pipe a Node.js read stream, represented by the
variable ``fs``, to the ``openUploadStream()`` method of a ``GridFSBucket`` instance:

.. code-block:: javascript

Expand Down
2 changes: 1 addition & 1 deletion source/includes/aggregation/filtered-subset.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function run() {
const aggDB = client.db("agg_tutorials_db");

// start-collection
const personColl = await aggDB.collection("persons");
const personColl = aggDB.collection("persons");
// end-collection

// start-insert-persons
Expand Down
2 changes: 1 addition & 1 deletion source/includes/aggregation/group-total.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function run() {
const aggDB = client.db("agg_tutorials_db");

// start-coll
const ordersColl = await aggDB.collection("orders");
const ordersColl = aggDB.collection("orders");
// end-coll

// start-insert-orders
Expand Down
4 changes: 2 additions & 2 deletions source/includes/aggregation/multi-field-join.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ async function run() {
const aggDB = client.db("agg_tutorials_db");

// start-colls
const productsColl = await aggDB.collection("products");
const ordersColl = await aggDB.collection("orders");
const productsColl = aggDB.collection("products");
const ordersColl = aggDB.collection("orders");
// end-colls

// start-insert-products
Expand Down
4 changes: 2 additions & 2 deletions source/includes/aggregation/one-to-one-join.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ async function run() {
const aggDB = client.db("agg_tutorials_db");

// start-colls
const ordersColl = await aggDB.collection("orders");
const productsColl = await aggDB.collection("products");
const ordersColl = aggDB.collection("orders");
const productsColl = aggDB.collection("products");
// end-colls

// start-insert-orders
Expand Down
2 changes: 1 addition & 1 deletion source/includes/aggregation/unpack-arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function run() {
const aggDB = client.db("agg_tutorials_db");

// start-coll
const ordersColl = await aggDB.collection("orders");
const ordersColl = aggDB.collection("orders");
// end-coll

// start-insert-orders
Expand Down

0 comments on commit 5568548

Please sign in to comment.