[DOCS-6208] Comment on: "manual/reference/operator/update/pull.txt" Created: 15/Sep/15 Updated: 30/Oct/23 Resolved: 17/Oct/18 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | bite-sized, docs-triage | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
windows 8 Location: http://docs.mongodb.org/manual/reference/operator/update/pull/#up._S_pull |
||
| Participants: | |
| Days since reply: | 5 years, 17 weeks ago |
| Epic Link: | DOCSP-1769 |
| Story Points: | 0.25 |
| Description |
|
{ , { item: "B", score: 8, comment: "Strongly agree" } ] , { item: "B", score: 4 } ] db.survey.update( } }, { multi: true }) here the $pull operator does not remove result with {score:8,item:"B"}as $pull for array of documents requires all fields to match. |
| Comments |
| Comment by Kay Kim (Inactive) [ 17/Oct/18 ] |
|
per documentation: Because $pull operator applies its query to each element as though it were a top-level object, the expression did not require the use of $elemMatch to specify the condition of a score field equal to 8 and item field equal to "B". {document} |