You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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 😄
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.
The text was updated successfully, but these errors were encountered: