Am trying to connect to mongodb throw my node js app using this line:
const db = mongoskin.db("mongodb://localhost:27017/todo?auto_reconnect", {safe:true});
Am trying to connect to mongodb throw my node js app using this line:
const db = mongoskin.db("mongodb://localhost:27017/todo?auto_reconnect", {safe:true});
Copyright © 2021 Jogjafile Inc.


Please read documentation: https://docs.mongodb.com/manual/reference/connection-string/#connections-connection-options
What version of MongoDB? In latest documentation i cant find any option called
auto_reconnectso It isnt required.