Answers for "log query typeorm"

0

log query typeorm

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);
Posted by: Guest on January-05-2022

Browse Popular Code Answers by Language