Document createIndexes usage

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.3.3, 3.4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
            Reporter:
            Katherine Walker (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: