Definition

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

Array/Object Structure

target
string
required
value
string|int|float
required

Example

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

SQL

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

Modifiers

None available.