egg.js 后端如何对从数据库提取的数据进行表连接?

在后端提取到数据库数据后,怎么对多个表进行像SQL语句那样连接条件筛选等操作?
后端获取数据:

async tab1() {
    try {
      const sqlStr = `SELECT * FROM tab1 `;
      const client2 = await this.app.mysql.get('db2');
      const res = client2.query(sqlStr);
      return res;
    } catch (error) {
      console.log(error);
      return null;
    }
  }

后端处理多个表:

  async table() {
    const tab1 = await this.tab1();
    const tab2 = await this.tab2();
    const tab3 = await this.tab3();
//对tab1.2.3进行左连接及条件筛选等类似SQL语句中的join...on...    where...    order by...    group by...等操作
  }