I'm using the Docker Image mongo:3.6 and switched the "useUnifiedTopology" parameter to true as advised. If I do so I get the following deprecation warnings:
(node:51) DeprecationWarning: The option autoReconnect is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
(node:51) DeprecationWarning: The option reconnectTries is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
(node:51) DeprecationWarning: The option reconnectInterval is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
An easy fix would be, to not set those three, if "useUnifiedTopology" is handed over as option to the database.js
This works, let me know if you want a PR.
I was having the same problem, but your database.js file works! Thanks @ekegodigital
Fixed with https://github.com/agenda/agenda/pull/948
Most helpful comment
database.js.txt
This works, let me know if you want a PR.