db.databaseName returns undefined

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.0.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      docs say db should have a property named databaseName, but...

      this test is failing:

      import test from 'ava'
      import mongodb from 'mongodb'
      
      test('connect', async t => {
        const db = await mongodb.MongoClient.connect('mongodb://localhost/my-db')
        t.is(db.databaseName, 'my-db')
      })
      

      am i misunderstanding the documentation?

            Assignee:
            Unassigned
            Reporter:
            tony kerz
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: