@@ -869,17 +869,20 @@ declare module 'mongoose' {
869869
870870 /** Creates a `updateMany` query: updates all documents that match `filter` with `update`. */
871871 updateMany < ResultDoc = THydratedDocumentType > (
872- filter ? : RootFilterQuery < TRawDocType > ,
873- update ? : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline ,
872+ filter : RootFilterQuery < TRawDocType > ,
873+ update : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline ,
874874 options ?: ( mongodb . UpdateOptions & MongooseUpdateQueryOptions < TRawDocType > ) | null
875875 ) : QueryWithHelpers < UpdateWriteOpResult , ResultDoc , TQueryHelpers , TRawDocType , 'updateMany' , TInstanceMethods & TVirtuals > ;
876876
877877 /** Creates a `updateOne` query: updates the first document that matches `filter` with `update`. */
878878 updateOne < ResultDoc = THydratedDocumentType > (
879- filter ? : RootFilterQuery < TRawDocType > ,
880- update ? : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline ,
879+ filter : RootFilterQuery < TRawDocType > ,
880+ update : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline ,
881881 options ?: ( mongodb . UpdateOptions & MongooseUpdateQueryOptions < TRawDocType > ) | null
882882 ) : QueryWithHelpers < UpdateWriteOpResult , ResultDoc , TQueryHelpers , TRawDocType , 'updateOne' , TInstanceMethods & TVirtuals > ;
883+ updateOne < ResultDoc = THydratedDocumentType > (
884+ update : UpdateQuery < TRawDocType > | UpdateWithAggregationPipeline
885+ ) : QueryWithHelpers < UpdateWriteOpResult , ResultDoc , TQueryHelpers , TRawDocType , 'updateOne' , TInstanceMethods & TVirtuals > ;
883886
884887 /** Creates a Query, applies the passed conditions, and returns the Query. */
885888 where < ResultDoc = THydratedDocumentType > (
0 commit comments