📅  最后修改于: 2022-03-11 15:02:40.029000             🧑  作者: Mango
let posts = await Posts
.query()
.leftJoin(‘post_titles’, function () {
this
.on(‘post_titles.post_id’, ‘posts.id’)
.andOn(‘post_titles.lang_code’, Database.raw(’?’, [‘EN’]))
})