On $lookup's foreign key sometimes 'id' works sometimes '_id' works

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.4.2
    • Component/s: None
    • None
    • Server Triage
    • ALL
    • Hide

      I don't know how to reproduce this. If I able to reproduce I let here

      Show
      I don't know how to reproduce this. If I able to reproduce I let here
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am using 22.04

      Mongodb version 4.4.22

       

      On mongodb $lookup Sometimes 'id' works and sometimes '_id' works.

       

      I am attaching mongodb campass and vs code git changelog images as reference.

        1. IMG_20230611_075151_535.jpg
          2.38 MB
          BAPI DEY
        2. IMG_20230611_075017_303.jpg
          2.55 MB
          BAPI DEY

            Assignee:
            Chris Kelly
            Reporter:
            BAPI DEY
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: