-
Notifications
You must be signed in to change notification settings - Fork 1.7k
DOCS-5167: Move 3.0 dot notation change example out of API reference #2274
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
For example, the following will raise an error: | ||
|
||
.. code-block:: javascript | ||
|
||
db.collection.update( { "_id.authorID": 1 }, | ||
{ "name": "Robert Frost" }, | ||
{ upsert: true } ) | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
When you execute an :method:`~db.collection.update()` with the ``upsert`` | ||
option, you can no longer use :ref:`document-dot-notation` to select only on | ||
part of the ``_id`` field. For example, the following will raise an error: | ||
|
||
.. code-block:: javascript | ||
|
||
db.collection.update( { "_id.authorID": 1 }, | ||
{ "name": "Robert Frost" }, | ||
{ upsert: true } ) | ||
option, you can not use :ref:`dot notation <document-dot-notation>` to select only | ||
part of the ``_id`` field. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto. Given my test examples, the sentence needs to be more precise. Afterwards, could you have scott code review?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imprecise. Exactly why would the example shown raise an error?