[DOCS-10854] $addToSet missing information on the order (aggregation) Created: 29/Sep/17 Updated: 30/Oct/23 Resolved: 23/Jan/18 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Renato Riccio | Assignee: | Steve Renaker (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 6 years, 3 weeks, 1 day ago |
| Description |
|
In the $addToSet documentation is reported that this operator does not guarantee a particular ordering of elements in the modified set. The same statement is not reported in the aggregation documentation Could be a good idea to repeat the statement also in the aggregation section. |
| Comments |
| Comment by Renato Riccio [ 23/Jan/18 ] |
|
steve.renaker you are right, this ticket can be closed |
| Comment by Steve Renaker (Inactive) [ 23/Jan/18 ] |
|
renato.riccio The aggregation page for $addToSet does mention that element order is not guaranteed: "Order of the elements in the output array is unspecified." Are there other details missing from the aggregation page? Thanks. |