matteodem / meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
MIT License
436 stars 68 forks source link

$or Query in Selector #618

Closed sydCPT closed 7 years ago

sydCPT commented 7 years ago

Hi There

Is there a way to write a query using $or on the selector. When I try the below, I get back the error: MongoError: unknown operator: $or

const now = moment().unix()
selector['availability.to'] = {
        $or: [{
          $gte: now
        },{
          $eq: NaN
        }]
      };

This query works if I do it directly on Mongo, but not using Easysearch. Is this a limitation of Easysearch or am I trying to do the query incorrectly?

Thanks

ignacy130 commented 7 years ago

Why is it closed? Did you find a solution? It would be great if you post it! :)