Type alias CollectionPush<Schema>

CollectionPush<Schema>: {
    [K in keyof CollectionArrayUpdate<Schema>]?: CollectionArrayUpdate<Schema>[K] | {
        $each: CollectionArrayUpdate<Schema>[K][];
        $position?: number;
    }
}

Weaker version of StrictPush which allows for more flexibility in typing push operations.

Type Parameters

  • Schema