Variable set of attributes $facets MongoDB

45 Views Asked by At

How to use the $facet aggregation when I don't know upfront the name of all the attributes?

The documentation in https://www.mongodb.com/docs/atlas/atlas-search/facet only provides examples for a fixed and known upfront set of attributes.

0

There are 0 best solutions below