Chapter 4 $bucket Compass error in movies

Hi,

I’m fiddling around the movies collection with $bucket in Compass.

Compass throws a “Expected “[” or AggregationStage but “{” found” error right away when I delete the placeholder <> value in the groupBy clause to replace it with “$imdb.rating”.

The error stays even when I cancel my typing and get the <> placeholder back.

Any clues as to why that is ? Is it a Compass bug ?

This $bucket stage works perfectly fine in the Mongo Shell so that’s really puzzling.

Thanks !
Franck

It seems Compass doesn’t recognize “Infinity” as a valid value in the boundaries array. It considers it as a String…
Which syntax should we use then ?