Commit 79f0814
Add support for db.collection.aggregate([pipeline]) with comprehensive
tests based on MongoDB official documentation examples.
Changes:
- Add opAggregate operation type and pipeline field
- Add extractAggregationPipeline() to parse pipeline from genericMethod
- Add executeAggregate() using collection.Aggregate()
- Add 8 test functions covering basic stages, $group, $lookup, $unwind
Test coverage includes all 5 MongoDB aggregation tutorial examples:
- Filtered Subset ($match + $sort + $limit + $unset)
- Group and Total ($group with $first/$sum)
- Unwind Arrays ($unwind + $match + $group)
- One-to-One Join ($lookup simple)
- Multi-Field Join ($lookup with let/pipeline/$expr)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4299ca8 commit 79f0814
3 files changed
Lines changed: 819 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
134 | 175 | | |
135 | 176 | | |
136 | 177 | | |
| |||
0 commit comments