function getAllCustomers() {
    const pool = new sql.ConnectionPool(config);
    const request = new sql.Request(pool);
    try {
        pool.connect(function () {
            request.query('select * from Customers', function (err, res) {
                console.log(res.recordset);
                return res.recordset;
            });
        });
    } catch (error) {
        console.log(error);
    }
    return;
}I smoothly printing res.recordset to the console but when I want to return this value from the function, returns null. What should I do for this?
