From cf7b1416995d3728c12067ce661e0de894b261e5 Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Mon, 17 Jun 2013 19:36:03 -0400 Subject: [PATCH] DOCS-1492 minor changes to find & findOne" --- source/reference/method/db.collection.find.txt | 13 ++++++------- source/reference/method/db.collection.findOne.txt | 11 ++++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/source/reference/method/db.collection.find.txt b/source/reference/method/db.collection.find.txt index 4af5791d14a..0c8f520ac05 100644 --- a/source/reference/method/db.collection.find.txt +++ b/source/reference/method/db.collection.find.txt @@ -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() ` 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 diff --git a/source/reference/method/db.collection.findOne.txt b/source/reference/method/db.collection.findOne.txt index 02326c291ce..a231a68f897 100644 --- a/source/reference/method/db.collection.findOne.txt +++ b/source/reference/method/db.collection.findOne.txt @@ -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() ` 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 -------