Closed nmarley closed 4 years ago
@nmarley Unfortunately it only works with replica set, if we're passing this option without having replica it loops forever and throws stack overflow. That is why we are not using it for the initial connection (where we set up replica).
Ah ok, thanks for the info. Good to know! 😄
Closing.
This passes option
{ useUnifiedTopology: true }
to the MongoClient constructor, and fixes theDeprecationWarning: current Server Discovery and Monitoring engine
seen in tests and Travis.