See an example in https://www.mongodb.com/docs/atlas/atlas-search/facet/#search_meta-aggregation-variable