> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eloquentfiltering.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Null

export const type_0 = "$null"

## Definition

```php theme={null}
Filter::field('age', [FilterType::NULL]);
Filter::field('weight', [FilterType::NULL]);
```

## Array/Object Structure

<ParamField body="type" type="string" required>
  <code>
    {type_0}
  </code>
</ParamField>

<ParamField body="target" type="string" required />

<ParamField body="value" type="true|false" required />

## Example

```php theme={null}
$filters = [
    [
        'type'   => '$null',
        'target' => 'age',
        'value'  => true,
    ],
    [
        'type'   => '$null',
        'target' => 'weight',
        'value'  => false,
    ],
];
```

```php theme={null}
$sql = Person::filter($filters)->toRawSql();
```

### SQL

```sql theme={null}
select *
  from "people"
 where "people"."age" is null
   and "people"."weight" is not null
```

## Modifiers

None available.
