Skip to content

DOCS-1492 db.collection.update, sh.addTagRange, sh.waitForDLock #1057

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
7 changes: 4 additions & 3 deletions source/reference/method/db.cloneCollection-param.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ name: query
type: document
position: 3
description: |
A standard :ref:`MongoDB query document <mongodb-query-document>` to
limit the documents copied as part of the
:method:`db.cloneCollection()` operation.
A standard query document to limit the documents copied as part of the
:method:`db.cloneCollection()` operation. Use the same :ref:`query
selectors <query-selectors>` as used in the :method:`find()
<db.collection.find()>` method.
...
77 changes: 77 additions & 0 deletions source/reference/method/db.collection.update-param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
object:
name: db.collection.update()
type: method
field:
optional: false
type: param
name: query
type: document
position: 1
description: |
The selection criteria for the update. Use the same :ref:`query
selectors <query-selectors>` as used in the :method:`find()
<db.collection.find()>` method.
---
object:
name: db.collection.update()
type: method
field:
optional: false
type: param
name: update
type: document
position: 2
description: |
The modifications to apply. For details see :ref:`update-parameter`
after this table.
---
object:
name: db.collection.update()
type: method
field:
optional: true
type: param
name: options
type: document
position: 3
description: |
New in version 2.2: Specifies whether to perform an :term:`upsert`
and/or a multiple update. Use the ``options`` parameter instead of the
individual ``upsert`` and ``multi`` parameters.
---
object:
name: db.collection.update()
type: method
field:
optional: true
type: param
name: upsert
type: Boolean
position: 4
description: |
Specifies whether to create a new document if no document matches the
query criteria. When ``upsert`` is set to ``true``, the
:method:`~db.collection.update()` method either updates an existing
document, or, if no document matches the criteria, inserts a new
document. When ``upsert`` is set to ``false``,
:method:`~db.collection.update()` does not insert a new document if no
match is found. The default value is ``false``. For additional
information, see :ref:`upsert-parameter`.
---
object:
name: db.collection.update()
type: method
field:
optional: true
type: param
name: multi
type: Boolean
position: 5
description: |
Specifies whether to update multiple documents that meet the ``query``
criteria. When ``multi`` is set to ``true``, the
:method:`~db.collection.update()` method updates all documents that
meet the criteria. When ``multi`` is set to ``false``, the method
updates one document. The default value is ``false``. For additional
information, see :ref:`multi-parameter`.
...
Loading