@wxn0brp/db-core
    Preparing search index...

    Type Alias LogicalOperators<T>

    Logical Operators

    type LogicalOperators<T = any> = {
        $and?: SearchOptions<T>[];
        $not?: SearchOptions<T>;
        $or?: SearchOptions<T>[];
    }

    Type Parameters

    • T = any
    Index

    Properties

    Properties

    $and?: SearchOptions<T>[]

    Recursively applies multiple conditions, all of which must evaluate to true. Can include other operators such as $gt, $exists, or nested $and/$or conditions.

    Negates a single condition. Can include any other operator as its value.

    $or?: SearchOptions<T>[]

    Recursively applies multiple conditions, at least one of which must evaluate to true. Can include other operators such as $lt, $type, or nested $and/$or conditions.