[SERVER-29930] allow nested $facet in another $facet of aggregate Created: 30/Jun/17 Updated: 23/Feb/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jame Yang | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 7 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Optimization
|
||||||||
| Participants: | |||||||||
| Description |
|
Like below code:
This will thrown:
Hope to allow nested $facet happen, is there any downside? |
| Comments |
| Comment by Asya Kamsky [ 23/Feb/23 ] |
|
The example query actually doesn’t require nested $facet - you can post your example/query in community.mongodb.com forums though. |
| Comment by Shail Panchal [ 23/Feb/23 ] |
|
Is there any workaround I can implement if I want to solve a similar kind of query? |