Skip to content

Correcting findAndModify update and remove field descriptions #1134

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
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
12 changes: 7 additions & 5 deletions source/reference/command/findAndModify.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ findAndModify

:field boolean remove:

Optional if ``update`` field exists. When ``true``, removes
the selected document. The default is ``false``.
Optional if no ``update`` field exists. When ``true``, removes
the selected document. The default is ``false``. An error will be
returned if used in combination with ``update``.

:field document update:

Optional if ``remove`` field exists. Performs an update of the
selected document. The ``update`` field employs the same
Optional if ``remove`` field does not exist. Performs an update of
the selected document. The ``update`` field employs the same
:ref:`update operators <update-operators>` or ``field: value``
specifications to modify the selected document.
specifications to modify the selected document. An error will be
returned in used in combination with ``remove``.

:field boolean new:

Expand Down