MongoDB $facet not working

Hi,

How do I do facet aggregation on redash, mongodb manual reference and error code on redash posted below.

image

Thanks and look forward to your replies.

Ralph

What version of MongoDB do you use?