📜  mongoose .where 三元运算符 - 任何代码示例

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

代码示例1
Person.find({
      $and: [
          { $or: [{date_begin: null}, {date_begin: {$lte : today}}] },
          { $or: [{date_end: null}, {date_end: {$gte : tommorow}}] }
      ]
  }, function (err, results) {
      ...
  }