Skip to content

fix list replace error and code-block spacing in params #995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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
38 changes: 18 additions & 20 deletions source/reference/method/db.collection.findOne-param.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
...
4 changes: 2 additions & 2 deletions source/reference/method/db.eval-param.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions source/reference/method/db.eval.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down