Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3980

$round not working in aggregation

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.19.12
    • Labels:
      None
    • Environment:
      Ubuntu 18.04

      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 ] } }

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            jerome.deleon107@gmail.com Jerome de Leon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: