[COMPASS-3980] $round not working in aggregation Created: 27/Nov/19  Updated: 28/Nov/19  Resolved: 28/Nov/19

Status: Closed
Project: Compass
Component/s: Aggregation pipeline, Compass
Affects Version/s: 1.19.12
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jerome de Leon Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 18.04


Issue Links:
Duplicate
duplicates COMPASS-3977 $round operator not supported in aggr... Closed

 Description   

I tried using MongoDB Aggregation Pipelines but $round is not working properly. I tried to replicate your example in the documentation but got an warning instead:

Expected "[" or AggregationStage but "{" found.

{ roundedValue: { $round: [ "$value", 1 ] } }

 


Generated at Wed Feb 07 22:34:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.