Chapter 4: Core Aggregation - Multidimensional Grouping The $bucket Stage

Hi, the following statement which is show in the lab $bucket stage, doesn’t run. Lecture: The $bucket Stage

What is the reason?

Thanks in advance

You did not copy it correctly.

The detail of the error message that says missing : after property id : @(shell):5:20 is the clue. Line 5 (the 5 from the error message) is the one with the boundaries property. You have an extra : inside your quotes (that were not present in the lecture notes) and you are missing one : between the property id and its value.

Thanks @steevej-1495, you are right but I didn’t write, I copied the statement from the file “bucket_stage.js”