Skip to content

4.10.3

Choose a tag to compare

@binaryk binaryk released this 16 Feb 09:49
· 23 commits to 4.x since this release

Added

  • Filtering by datetimeinterval:
// Repository: 
$match = [
            'created_at' => RestifySearchable::MATCH_DATETIME_INTERVAL,
];

Query:

// Use isoString format

GET: /posts?created_at=created_at=2020-12-16T09:48:52.480645Z,2021-02-16T09:48:52.481004Z

This will filter by this interval.

You can also negate this by using - before the column name: -created_at=.