Open bluerid opened 6 years ago
@bluerid
You could easily add a where clause like this, just like you run it over a mongoose query.
Remember this is a mongoose plugin :smile:
Like so below
filter.date_event = { "$gte": _startdate, "$lt": _enddate }
paginationParams = { after: "52fb4cd4205626aceddc7127" };
Event.paginate(paginationParams, '_id') .where(filter) .execPagination(function(err, events) { //your stuff here })
I need to send in a date range to filter docs returning list of events date wise. How would I be able to do this? Sending the filter parameter with {params} doesn't do anything.