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

Document createIndexes usage

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.3, 3.4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      A user filed NODE-2015 because running createIndexes resulted in an error that the field is not valid for index specification. This happened because we do not document the usage for createIndexes, which is

      coll.createIndexes([{ key: { a_index: 1 } }, { key: { an_index: 2 } }]);
      

      We should improve our documentation around this.

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: