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

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor - P4
    • Resolution: Fixed
    • None
    • None
    • drivers
    • None

    Description

      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.)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 38 weeks, 6 days ago