@resolveio/server-lib 20.12.7 → 20.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -580,7 +580,7 @@ var MongoManager = /** @class */ (function () {
580
580
  };
581
581
  MongoManager.prototype.executeAggregate = function (collectionName, pipeline, options, cacheKey, collections) {
582
582
  return __awaiter(this, void 0, void 0, function () {
583
- var result, collection, _a, session, safeOptions, monitor, queryStart, err_3, durationMs;
583
+ var result, collection, _a, session, safeOptions, monitor, queryStart, err_3, durationMs, aggregateFilter;
584
584
  return __generator(this, function (_b) {
585
585
  switch (_b.label) {
586
586
  case 0:
@@ -610,8 +610,10 @@ var MongoManager = /** @class */ (function () {
610
610
  return [4 /*yield*/, monitor.finish()];
611
611
  case 5:
612
612
  _b.sent();
613
+ aggregateFilter = pipeline && pipeline.length ? { pipeline: pipeline } : undefined;
613
614
  slow_query_reporter_1.SlowQueryReporter.reportSlowQueryFireAndForget({
614
615
  collection: collectionName,
616
+ filter: aggregateFilter,
615
617
  pipeline: pipeline,
616
618
  options: safeOptions,
617
619
  durationMs: durationMs,