Skip to content

Commit fe1fee7

Browse files
author
Chris Cho
authored
DOCSP-11654: fix findOne usage example (#123)
1 parent 66d4c78 commit fe1fee7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

source/usage-examples/findOne.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,3 @@ following:
5858

5959
{ title: 'The Room', imdb: { rating: 3.5, votes: 25673, id: 368226 } }
6060

61-
The ``sort`` and ``projection`` options can also be specified as methods
62-
(``sort()`` and ``project()``, respectively) chained to the ``findOne`` method.
63-
The following two commands are equivalent:
64-
65-
.. code-block:: javascript
66-
67-
collection.findOne(query, { sort: { rating: -1}, projection: { _id: 0, title: 1, imdb: 1});
68-
collection.findOne(query).sort({rating: -1}).project({ _id: 0, title: 1, imdb: 1});
69-
70-

0 commit comments

Comments
 (0)