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

The API example for collection.createIndex shows Db.createIndex functionality.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.0.40
    • Affects Version/s: None
    • Component/s: None

      In the API documentation for node-mongodb-native v2.0, a few of the examples for Collection.createIndex actually show the usage of Db.createIndex.

      Specifically example 1 and 4, found here: http://mongodb.github.io/node-mongodb-native/2.0/api/Collection.html#createIndex

      The usage and parameters for the createIndex function example refer to:
      https://github.com/mongodb/node-mongodb-native/blob/2.0/lib/db.js#L883

      rather than: https://github.com/mongodb/node-mongodb-native/blob/2.0/lib/collection.js#L1267

      I wouldn't mind putting in a PR to fix this myself, but I cant find where the docs for this project reside..

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            zackurben Zack Urben
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: