I would recommend against using $facet as performance-wise it’s going to be worse than just about any other option.
$facet