router.get('/:userId&:email', (req, res) => {
client.connect( async err => {
const collection = client.db(dbName);
if (!err) {
console.log("Connected successfully to server.");
} else {
console.log('Error in DB connection : ', JSON.stringify(err, undefined, 2));
}
try {
const result = await findUser(collection, req.params.userId, req.params.email);
console.log('result ', result);
res.send(result);