[DOCS-11156] Comment on: "manual/reference/method/db.collection.update" Created: 26/Dec/17 Updated: 30/Oct/23 Resolved: 09/Apr/18 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Stennie Steneker (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | mts | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongodb with nodejs Location: https://docs.mongodb.com/manual/reference/method/db.collection.update/index.html |
||
| Participants: | |
| Days since reply: | 5 years, 44 weeks, 2 days ago |
| Story Points: | 0.25 |
| Description |
wrong query not run proper give error |
| Comments |
| Comment by Stennie Steneker (Inactive) [ 09/Apr/18 ] | ||||||
|
The quoted example code is from the MongoDB 3.6 server documentation and uses the new filtered positional operator ($[elem]) and arrayFilters features. If you are using an older version of MongoDB server that does not support this syntax you will get an error similar to:
Note that the DOCS project is for reporting documentation errata or suggestions. For appropriate channels for MongoDB-related support discussion please refer to Technical Support options in the MongoDB documentation. Regards, |