Definition

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

Array/Object Structure

target
string
required
value
true|false
required

Example

$filters = [
    [
        'type'   => '$null',
        'target' => 'age',
        'value'  => true,
    ],
    [
        'type'   => '$null',
        'target' => 'weight',
        'value'  => false,
    ],
];
$sql = Person::filter($filters)->toRawSql();

SQL

select *
  from "people"
 where "people"."age" is null
   and "people"."weight" is not null

Modifiers

None available.