Definition

Filter::field('age', [FilterType::LESS_THAN])

Array/Object Structure

target
string
required
value
string|int|float
required

Example

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

SQL

select * from "people" where "people"."age" < 18

Modifiers

None available.