Answers for "adonis join condition"

1

adonis join condition

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