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

Using useNewUrlParser: true prevents db name from connection string from being applied

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Hello!

      Setting "useNewUrlParser" to true seems to prevent the feature introduced in https://jira.mongodb.org/browse/NODE-1258 from working, where calling db() without dbName should default to the database name that was provided in the connection string. Explicitly providing a database name to db(), or unsetting useNewUrlParser works as expected.

       

      Thank you!

            Assignee:
            Unassigned Unassigned
            Reporter:
            yulian Yulian O
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: