jsonapi icon indicating copy to clipboard operation
jsonapi copied to clipboard

Filter with AND clause or BETWEEN variant for date fields

Open Raxta opened this issue 7 years ago • 2 comments

In filter parameter options combine with OR operator. Anybody know's how pass options to filter parameter that they combine in query with AND clause? Or maybe for data field exist another method for filterring with BETWEEN clause?

Raxta avatar Dec 12 '17 11:12 Raxta

This one's a bit tricky, but there's a hackish workaround that still works; do it like so:

&filter[datepublish]=>2017-01-01%20%26%26%20<2017-06-01

So the value is basically:

>2017-01-01 && <2018-01-01

xiaohutai avatar Mar 08 '18 11:03 xiaohutai

See also: https://github.com/json-api/json-api/issues/372

xiaohutai avatar Jul 30 '18 12:07 xiaohutai