Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79180

Define a constant for the name of the index on _id

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible

      The index on the id field always has the same default name (_id) but there is no constant referencing it in the code, instead it is constructed in several places such as here. We could add a constant to store the name for easy referencing in the rest of the code base. 

            Assignee:
            parker.felix@mongodb.com Parker Felix
            Reporter:
            kristina.znam@mongodb.com Kristina Znam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: