📜  adonis where or - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:12.843000             🧑  作者: Mango

代码示例1
Database
  .from('users')
  .where((query) => {
    query
      .where('username', 'virk')
      .whereNull('deleted_at')
  })
  .orWhere((query) => {
    query
      .where('email', 'virk@adonisjs.com')
      .whereNull('deleted_at')
  })