Optimize the $listClusterCatalog aggregation stage when it's immediately followed by a $match stage filtering the documents by 'db'.
- If $match filters by 'db', we should only call the listCollections command for the databases that match the given query.
- backported by
-
SERVER-98652 [v8.0] Backport the $listClusterCatalog aggregation stage to v8.0
-
- Closed
-