Definition

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

Array/Object Structure

target
string
required
value
string|int|float
required

Example

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

SQL

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

Modifiers

None available.