Check out example codes for "typeorm tosql". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com