diff --git a/source/reference/method/db.collection.findOne-param.yaml b/source/reference/method/db.collection.findOne-param.yaml index b49279226a5..b56145ccec4 100644 --- a/source/reference/method/db.collection.findOne-param.yaml +++ b/source/reference/method/db.collection.findOne-param.yaml @@ -18,29 +18,27 @@ field: name: projection type: document position: 2 -description: | +description: + - | + Controls the fields to return. The following is a prototype + ``projection`` argument: - Controls the fields to return. The following is a prototype ``projection`` argument: + .. code-block:: javascript - .. code-block:: javascript + { field1: boolean, field2: boolean ... } - { field1: boolean, field2: boolean ... } + The ``boolean`` can take the following include or exclude values: - The ``boolean`` can take the following include or exclude - values: + - ``1`` or ``true`` to include. The + :method:`~db.collection.findOne()` method always includes the + :term:`_id` field even if the field is not explicitly stated to + return in the :term:`projection` parameter. - - ``1`` or ``true`` to include. The - :method:`~db.collection.findOne()` method always - includes the :term:`_id` field even if the field is not - explicitly stated to return in the :term:`projection` - parameter. - - - ``0`` or ``false`` to exclude. - - The ``projection`` cannot contain both include and exclude - specifications except for the exclusion of the ``_id`` - field. - - Omit the ``projection`` parameter to return **all** the - fields in the matching documents. + - ``0`` or ``false`` to exclude. + + The ``projection`` cannot contain both include and exclude + specifications except for the exclusion of the ``_id`` field. + + Omit the ``projection`` parameter to return **all** the fields + in the matching documents. ... diff --git a/source/reference/method/db.eval-param.yaml b/source/reference/method/db.eval-param.yaml index decda87f312..afa70934e1d 100644 --- a/source/reference/method/db.eval-param.yaml +++ b/source/reference/method/db.eval-param.yaml @@ -19,10 +19,10 @@ field: optional: true type: param name: arguments -type: array +type: list position: 2 description: - - ".. |list| replace:: A list" + - "" - ".. include:: /includes/parameters-eval.rst" - " :start-after: eval-param-argument" - " :end-before: eval-param-nolock" diff --git a/source/reference/method/db.eval.txt b/source/reference/method/db.eval.txt index 297b866c8ae..34d63c3d574 100644 --- a/source/reference/method/db.eval.txt +++ b/source/reference/method/db.eval.txt @@ -14,6 +14,8 @@ Definition Provides the ability to run JavaScript code on the MongoDB server. + .. |list| replace:: A list + .. include:: /reference/method/db.eval-param.rst .. include:: /includes/fact-eval-helper-method.rst