Answers for "adonis join with multi condictions"

1

adonis join with multi condictions

...
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’]))
  })
...
Posted by: Guest on March-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language