options.promiseLibrary not passed from Db to Collection in createCollection()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.0.40
    • Affects Version/s: 2.0.37
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I would expect the promiseLibrary to be specified once for the Db instance, and then passed down automatically, and that happens most of the time, except in this scenario:

      mongodb.MongoClient.connect("mongodb://localhost/test",

      { promiseLibrary: require('bluebird') }

      ).then(function(db)

      { return db.createCollection("test"); }

      ).then(function(col)

      { // This fails. assert(col.s.options.promiseLibrary); }

      );

              Assignee:
              Christian Amor Kvalheim
              Reporter:
              Nebojsa Sabovic
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: