NullValue
The NullValue
type is used to define conditions for null fields in a query.
Type Definition
type NullValue = RequireAtLeastOne<Record<'$not', null>> | null;
Properties
$not
- Type:
null
- Optional: Yes
Negates the condition.
Example Usage
Here is an example of how to define conditions for a null field:
const nullCondition: NullValue = {
$not: null
};
In this example:
- The query filters records where the
deletedAt
field isnull
.