【发布时间】:2018-01-17 08:28:47
【问题描述】:
如何将下面的代码转换为 TypeORM 查询构建器? 我正在尝试关注documentation。
this.repository.manager.query(`
SELECT item.name, item.id
FROM item_location
INNER JOIN item ON item.id = item_location.itemId
WHERE item_location.locationId = ${queryObject.filter};
`)
谢谢。
【问题讨论】:
标签: sql node.js database typescript typeorm