Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14176

Add options for new Server Discovery and Monitoring engine to example for version 3.6 of the Node driver

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: drivers
    • Labels:
      None

      Description

      Following the Node.js Connection Guide will return a Deprecation Warning:

      (node:98468) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

      Passing the following to the MongoClient resolves the warning:

      ,{ useNewUrlParser: true, useUnifiedTopology: true }

       

      Scope of changes

      Cut a 3.6 branch and change the connection guide and all examples to include connection options that became default in 4.0

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            nathan.leniz@mongodb.com Nathan Leniz
            Reporter:
            brian.leonard@mongodb.com Brian Leonard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 7 weeks, 6 days ago