Type alias AnyBulkWriteOperation<TSchema>

AnyBulkWriteOperation<TSchema>: {
    insertOne: InsertOneModel<TSchema>;
} | {
    replaceOne: ReplaceOneModel<TSchema>;
} | {
    updateOne: UpdateOneModel<TSchema>;
} | {
    updateMany: UpdateManyModel<TSchema>;
} | {
    deleteOne: DeleteOneModel<TSchema>;
} | {
    deleteMany: DeleteManyModel<TSchema>;
}

Represents some bulk write operation.

Be careful not to pass in multiple operations in the same object (only one operation per object allowed)

Type Parameters

Type declaration

Type declaration

Type declaration

Type declaration

Type declaration

Type declaration