Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Feedback #893

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading