[SERVER-45841] db.aggregate() fails without square brackets Created: 29/Jan/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Golub Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Operating System: ALL
Participants:

 Description   

In the Mongo shell, a command such as

db.aggregate({ $currentOp: {} })

fails unless it's written with square brackets:

db.aggregate([{ $currentOp: {} }])

This is inconsistent with the behavior of aggregate on a collection.



 Comments   
Comment by Carl Champain (Inactive) [ 29/Jan/20 ]

Passing this ticket along to the appropriate team.

Generated at Thu Feb 08 05:09:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.