[DOCS-5348] Comment on: "manual/reference/operator/update/pull.txt" Created: 05/May/15  Updated: 03/Nov/17  Resolved: 05/May/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Balint Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/operator/update/pull/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0
Screen Resolution: 1366 x 768
repo: docs
source: reference/operator/update/pull


Participants:
Days since reply: 8 years, 41 weeks, 1 day ago

 Description   

In the examples there is a passage:

"
After the operation, the results array contains no documents that contains score field equal to 8 and item field equal to "B":
{
"_id" : 1,
"results" : [

{ "item" : "A", "score" : 5 }

]
}
{
"_id" : 2,
"results" : [

{ "item" : "C", "score" : 8, "comment" : "Strongly agree" }

,

{ "item" : "B", "score" : 4 }

]
}
"
Should the object with "_id: 2" not have an empty "results" array? Or am I misunderstanding something?



 Comments   
Comment by Githook User [ 05/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5348: add word both
Branch: master
https://github.com/mongodb/docs/commit/6b499022d78e697ac6b77be3e87231c75c2459e3

Comment by Githook User [ 05/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5348: add word both
Branch: v2.6
https://github.com/mongodb/docs/commit/fe8d82ee493091fa4e71517d760a8a6370aee76c

Comment by Kay Kim (Inactive) [ 05/May/15 ]

Hi, the example results are correct. However, we'll clarify the sentences as they're missing the key word both as in:

The following operation will remove from the results array all elements that contain both a score field equal to 8 and item field equal to "B":

After the operation, the results array contains no document that contains both score field equal to 8 and an item field equal to "B".

Generated at Thu Feb 08 07:50:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.