Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6605

Enhanced Equality Match Meaning on $lookup

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      As described in Charlie's comment, if the localField is an array matching against a field inside will behave as null.

      We may want to note this and recommend that users unwind first if their localFields are arrays.

      https://docs.mongodb.org/master/reference/operator/aggregation/lookup/#pipe._S_lookup

      Attachments

        Activity

          People

            steve.renaker@mongodb.com Steve Renaker (Inactive)
            kelsey.schubert@mongodb.com Kelsey Schubert
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 41 weeks, 6 days ago