Allow OR operator when merging extraFilters on selectData


At the moment all extraFilter are using AND operator, would be nice to allow OR operator. So that we can logic like below

ExtraFilter ( user is pending )


ExtraFilter ( user is active )


Dominic Watson
October 15, 2020, 12:16 PM

This is not really doable. Additional filters can be loaded in via interceptors and any logic doing that will always expect extra filters to be AND.

If you require ORs, these can be achieved in other ways within the filter system.

I think this would require some further thought to be reliable. I think extraFilters will always need to be AND, but potentially there could be some kind of nesting for a group of additional filters that should be treated as a group of ORs (like with ElasticSearch DSL, for example).

Definitely needs more careful planning though I think.

Johnson Cheng
October 15, 2020, 10:59 AM




Johnson Cheng