File tree 3 files changed +7
-7
lines changed
code-snippets/usage-examples 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ interface Movie {
14
14
15
15
async function run ( ) {
16
16
try {
17
- const database = client . db ( "smaple_mflix " ) ;
17
+ const database = client . db ( "sample_mflix " ) ;
18
18
// Specifying a Schema is optional, but it enables type hints on
19
19
// finds and inserts
20
20
const movies = database . collection < Movie > ( "movies" ) ;
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ Additional Information
157
157
~~~~~~~~~~~~~~~~~~~~~~
158
158
159
159
For runnable code examples that demonstrate find operations, see the following
160
- full file examples:
160
+ examples:
161
161
162
162
- :ref:`node-usage-findone`
163
163
- :ref:`node-usage-find`
Original file line number Diff line number Diff line change @@ -197,14 +197,14 @@ find() Example: Full File
197
197
The following full file example finds documents from the ``movies`` collection. It
198
198
uses the following parameters:
199
199
200
- - A **query document ** that configures the query to return only
201
- movies with a runtime of less than 15 minutes.
200
+ - **Filter ** that matches documents in which the ``runtime`` value is less than 15
201
+ minutes.
202
202
203
- - A **sort ** that organizes returned documents in ascending order by
203
+ - **Sort ** that organizes returned documents in ascending order by
204
204
title (alphabetical order in which "A" comes before "Z" and "1" before
205
205
"9").
206
206
207
- - A **projection ** that explicitly excludes the ``_id`` field from
207
+ - **Projection ** that explicitly excludes the ``_id`` field from
208
208
returned documents and explicitly includes only the ``title`` and
209
209
``imdb`` object (and its embedded fields).
210
210
@@ -331,7 +331,7 @@ Additional Information
331
331
~~~~~~~~~~~~~~~~~~~~~~
332
332
333
333
For a runnable example of the ``watch()`` method, see the :ref:`examples
334
- <node-usage-watch: >` section in the :ref:`node-change-streams` guide.
334
+ <node-usage-watch>` section in the :ref:`node-change-streams` guide.
335
335
336
336
.. _node-retrieve-instruqt-lab:
337
337
You can’t perform that action at this time.
0 commit comments