[DOCS-10660] Comment on: "manual/reference/operator/aggregation/size" Created: 09/Aug/17 Updated: 30/Oct/23 Resolved: 13/Dec/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: | Amy Aldredge | Assignee: | Kay Kim (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7, mongo version 3.4.2 Location: https://docs.mongodb.com/manual/reference/operator/aggregation/size/ |
||
| Participants: | |
| Days since reply: | 5 years, 8 weeks, 6 days ago |
| Epic Link: | DOCSP-1769 |
| Description |
|
The example skips a very important caveat: All documents must have the list, otherwise there should be a match step before the size. example aggregation pipeline: error: uncaught exception: aggregate failed: { "ok" : 0, "errmsg" : "The argument to $size must be an array, but was of type: missing", "code" : 17124, "codeName" : "Location17124" }pipeline with match added: result: ], |
| Comments |
| Comment by Githook User [ 13/Dec/18 ] |
|
Author: {'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'kay'}Message: |
| Comment by Githook User [ 13/Dec/18 ] |
|
Author: {'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'kay'}Message: |
| Comment by Githook User [ 13/Dec/18 ] |
|
Author: {'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'kay'}Message: |
| Comment by Githook User [ 13/Dec/18 ] |
|
Author: {'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'kay'}Message: |
| Comment by Githook User [ 13/Dec/18 ] |
|
Author: {'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'kay'}Message: |