📜  日志查询 typeorm - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:35.338000             🧑  作者: Mango

代码示例1
const sql1 = await this.attendanceRepository
    .createQueryBuilder("attendance")
    .innerJoin("attendance.child", "child")
    .select(["attendance.childId","child.class","CONCAT(child.firstName, child.lastName)"])
    .where("attendance.id= :id", { id: id})
    .getQuery();
    console.log(sql1);