• Type: Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • QO 2023-03-20, QO 2023-04-03

       

      {
        $lookup: {
          from: <foreign collection>,
          localField: <field from local collection's documents>,
          foreignField: <field from foreign collection's documents>,
          let: { <var_1>: <expression>, …, <var_n>: <expression> },
          pipeline: [ <pipeline to run> ],
          as: <output array field>
        }
      } 

      Fields "from", "localField", "foreignField", and "as" represent collection/field names. They should not be abstracted during telemetry key gen. However they should be redacted/hashed by $telemetry. "let" should be treated as a normal let expression. And "pipeline" should be serialized/redacted recursively as a regular document source pipeline.

            Assignee:
            jess.balint@mongodb.com Jess Balint
            Reporter:
            joshua.lapacik@mongodb.com Joshua Lapacik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: