Definition

Filter::field('age', [FilterType::BETWEEN]);

Array/Object Structure

target
string
required
value
array,size:2
required
value.*
string|int|float
required

Example

$filter = [
    'type'   => '$between',
    'target' => 'age',
    'value'  => [18, 65,],
];
$sql = Person::filter([$filter])->toRawSql();

SQL

select * from "people" where "people"."age" between 18 and 65

Modifiers

None available.