Type alias UpdateFilter<TSchema>

UpdateFilter<TSchema>: {
    $addToSet?: SetFields<TSchema>;
    $bit?: OnlyFieldsOfType<TSchema, NumericType | undefined, {
        and: IntegerType;
    } | {
        or: IntegerType;
    } | {
        xor: IntegerType;
    }>;
    $currentDate?: OnlyFieldsOfType<TSchema, Date | Timestamp, true | {
        $type: "date" | "timestamp";
    }>;
    $inc?: OnlyFieldsOfType<TSchema, NumericType | undefined>;
    $max?: MatchKeysAndValues<TSchema>;
    $min?: MatchKeysAndValues<TSchema>;
    $mul?: OnlyFieldsOfType<TSchema, NumericType | undefined>;
    $pop?: OnlyFieldsOfType<TSchema, ReadonlyArray<any>, 1 | -1>;
    $pull?: PullOperator<TSchema>;
    $pullAll?: PullAllOperator<TSchema>;
    $push?: PushOperator<TSchema>;
    $rename?: Record<string, string>;
    $set?: MatchKeysAndValues<TSchema>;
    $setOnInsert?: MatchKeysAndValues<TSchema>;
    $unset?: OnlyFieldsOfType<TSchema, any, "" | true | 1>;
} & Document

Type Parameters

  • TSchema

Type declaration

Generated using TypeDoc