$addtoset in $bucket

On the bucket video, there is an example of using $addToset.
When I try haven’t found the function under the $bucket.
Now I see that it is under group only. is it possible to do under bucket?

Hi @Tal_Shainfeld,

Please share the aggregation pipeline that you are trying to run and then we can figure out the usage of $addToSet in the pipeline.

You can also check the $bucket documentation.

Please feel free to reach out if you have any questions.

Kind Regards,