app.get('/users', async(req, res) => { const query = {}; const cursor = user.find(query); const users = await cursor.toArray(); res.send(users); });