Typeorm tosql

This article is tagged with: Typeorm tosql and mysql

typeorm tosql

const sql = connection.createQueryBuilder()
.select("user")
.from(User, "user")
.where("user.id = :id", { id: 1 })
.getSql();

This article is tagged with: Typeorm tosql and mysql