Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-501

createIndex methods return only index name

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.7.7
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • 2
    • Needed
    • Hide

      Due to changes in the node driver (see NODE-2602) we can only return created index names instead of the entire document from the server. This includes:

      collection.createIndexes
      collection.createIndex
      collection.ensureIndex

      This is a breaking change from the old shell

      Show
      Due to changes in the node driver (see NODE-2602 ) we can only return created index names instead of the entire document from the server. This includes: collection.createIndexes collection.createIndex collection.ensureIndex This is a breaking change from the old shell
    • Iteration Rambutan

      Update the api code & tests to expect only index names

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: