Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2602

createIndexes should return created index names

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None

      Currently, the createIndex helper for the Db and Collection classes return the name of the created index. This differs from db.createIndexes being called with one index, which returns the full command response from the server.

      The createIndex helpers should be updated to return the full command response like db.createIndexes.

      db.createIndexes should be updated to return an array of names of the indexes created. This will bring the driver into compliance with the spec.

            Assignee:
            eric.adum@mongodb.com Eric Adum (Inactive)
            Reporter:
            eric.adum@mongodb.com Eric Adum (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: