From 8fc3b427c51edc9d75fd7a8b728d39ff46dcca70 Mon Sep 17 00:00:00 2001 From: hasezoey Date: Fri, 3 Mar 2023 11:28:27 +0100 Subject: [PATCH] fix(types/query): remove "update" function because function was removed for 7.0 in runtime --- types/query.d.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/types/query.d.ts b/types/query.d.ts index a6ea6c7580e..7bd76d8dd25 100644 --- a/types/query.d.ts +++ b/types/query.d.ts @@ -594,9 +594,6 @@ declare module 'mongoose' { /** Converts this query to a customized, reusable query constructor with all arguments and options retained. */ toConstructor(): RetType; - /** Declare and/or execute this query as an update() operation. */ - update(filter?: FilterQuery, update?: UpdateQuery | UpdateWithAggregationPipeline, options?: QueryOptions | null): QueryWithHelpers; - /** * Declare and/or execute this query as an updateMany() operation. Same as * `update()`, except MongoDB will update _all_ documents that match