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

    Type Alias ArrayUpdater<T>

    Arrays

    type ArrayUpdater<T = any> = {
        $pull?: NestedValue<T, any>;
        $pullAll?: NestedValue<T, any>;
        $push?: NestedValue<T, any>;
        $pushAll?: NestedValue<T, any>;
        $pushSet?: NestedValue<T, any>;
    }

    Type Parameters

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

    [1,2,3] -> $pull 2 -> [1,3]

    $pullAll?: NestedValue<T, any>

    [1,2,2,3] -> $pullAll [2] -> [1,3]

    $push?: NestedValue<T, any>

    [1,2] -> $push 3 -> [1,2,3]

    $pushAll?: NestedValue<T, any>

    [1,2,3] -> $pushAll [2,3] -> [1,2,3]

    $pushSet?: NestedValue<T, any>

    [1,2] -> $pushSet 2,3 -> [1,2,3]