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

    Type Alias StringOperators<T>

    String Operators with nested support

    type StringOperators<T = any> = {
        $endsWith?: NestedValue<T, string, string>;
        $iEndsWith?: NestedValue<T, string, string>;
        $iStartsWith?: NestedValue<T, string, string>;
        $regex?: NestedValue<T, RegExp | string, string>;
        $startsWith?: NestedValue<T, string, string>;
    }

    Type Parameters

    • T = any
    Index
    $endsWith?: NestedValue<T, string, string>

    "John" ends with "hn"

    $iEndsWith?: NestedValue<T, string, string>

    "John" ends with "HN" (case-insensitive)

    $iStartsWith?: NestedValue<T, string, string>

    "John" starts with "jo" (case-insensitive)

    $regex?: NestedValue<T, RegExp | string, string>

    "John" matches /oh/

    $startsWith?: NestedValue<T, string, string>

    "John" starts with "Jo"