Answers for "mongoose .where tenary operator"

0

mongoose .where tenary operator

Person.find({
      $and: [
          { $or: [{date_begin: null}, {date_begin: {$lte : today}}] },
          { $or: [{date_end: null}, {date_end: {$gte : tommorow}}] }
      ]
  }, function (err, results) {
      ...
  }
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language