I found that behaviour of connect function is different to what is documented in README.md
connect(options, (db) => {
db.connect(() => {
db.db('mydb').collection('customers').count((err2, count) => {
console.log('counted:', err2, count);
db.close();
});
});
});
running db.close() closes mongo connection, but is there anyway I can disconnect the tunnel connection gracefully?
Thank you.
I found that behaviour of connect function is different to what is documented in README.md
running
db.close()closes mongo connection, but is there anyway I can disconnect the tunnel connection gracefully?Thank you.