Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support _id aggregation operators for $group stage #3096

Merged
merged 19 commits into from
Jul 26, 2023
Prev Previous commit
Next Next commit
fix
  • Loading branch information
noisersup committed Jul 24, 2023
commit 3606f165ea6f7001280d3196ac9c73a47beff07a
1 change: 1 addition & 0 deletions internal/handlers/common/aggregations/stages/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func newGroup(stage *types.Document) (aggregations.Stage, error) {
if field == "_id" {
if doc, ok := v.(*types.Document); ok {
if operators.IsOperator(doc) {
groupKey = v
continue
}

Expand Down