How to fix «current Server Discovery and Monitoring engine is deprecated» on a MongoDB connection using the `mongodb` Node.js package?

I have fixed it by adding the {useUnifiedTopology: true} connection parameter.
So I replaced:


with: