Skip to content
Closed
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
13 changes: 6 additions & 7 deletions source/reference/method/db.collection.find.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ Definition

.. include:: /reference/method/db.collection.find-param.rst

:returns:

A :term:`cursor` to the documents that match the ``query``
criteria. If the ``projection`` argument is specified, the
matching documents contain only the ``projection`` fields, and
the ``_id`` field if you do not explicitly exclude the ``_id``
field.
The :method:`find() <db.collection.find()>` method returns
a :term:`cursor` to the documents that match the ``query``
criteria. If the ``projection`` argument is specified, the
matching documents contain only the ``projection`` fields, and
the ``_id`` field if you do not explicitly exclude the ``_id``
field.

In the :program:`mongo` shell, you can access the returned documents
directly without explicitly using the JavaScript cursor handling
Expand Down
11 changes: 6 additions & 5 deletions source/reference/method/db.collection.findOne.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ Definition

.. include:: /reference/method/db.collection.findOne-param.rst

:returns: One document that satisfies the query specified as the
argument to this method. If the ``projection`` argument is
specified, the returned document contains only the
``projection`` fields, and the ``_id`` field if you do not
explicitly exclude the ``_id`` field.
The :method:`findOne() <db.collection.findOne()>` method returns
one document that satisfies the query specified as the
argument to this method. If the ``projection`` argument is
specified, the returned document contains only the
``projection`` fields, and the ``_id`` field if you do not
explicitly exclude the ``_id`` field.

Example
-------
Expand Down