Facet dynamic queries

Hello! I have a series of pipelines running in a $facet:

groupPipelines: {
  overview: [
    { '$match': [Object] },
    { '$group': [Object] },
    { '$project': [Object] }
  ],
  misc: [
    { '$match': [Object] },
    { '$group': [Object] },
    { '$project': [Object] }
  ],
  'e7de9290-d85a-4a9a-b701-2a4546e01839': [
    { '$match': [Object] },
    { '$group': [Object] },
    { '$project': [Object] }
  ],
  '210d6f60-7589-4ef3-9a99-ac44c28d0b66': [
    { '$match': [Object] },
    { '$group': [Object] },
    { '$project': [Object] }
  ],
  '6dd75751-5873-4ee6-975d-0f1cea135e61': [
    { '$match': [Object] },
    { '$group': [Object] },
    { '$project': [Object] }
  ],
  'b1f2321f-7ec9-4061-b75c-f879ecd326ef': [
    { '$match': [Object] },
    { '$group': [Object] },
    { '$project': [Object] }
  ],
  '14523155-f848-417e-bc06-5b2cf7db8fea': [
    { '$match': [Object] },
    { '$group': [Object] },
    { '$project': [Object] }
  ]
}

As you can see, the first 2 pipelines have the names ‘overview’ and ‘misc’ and the rest are dynamic ids. I need to group the dynamic ids in their own list otherwise I can’t properly iterate through them.

Current implementation: