File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -976,26 +976,26 @@ export class Collection<TSchema extends Document = Document> {
976976 */
977977 async findOneAndUpdate (
978978 filter : Filter < TSchema > ,
979- update : UpdateFilter < TSchema > ,
979+ update : UpdateFilter < TSchema > | Document [ ] ,
980980 options : FindOneAndUpdateOptions & { includeResultMetadata : true }
981981 ) : Promise < ModifyResult < TSchema > > ;
982982 async findOneAndUpdate (
983983 filter : Filter < TSchema > ,
984- update : UpdateFilter < TSchema > ,
984+ update : UpdateFilter < TSchema > | Document [ ] ,
985985 options : FindOneAndUpdateOptions & { includeResultMetadata : false }
986986 ) : Promise < WithId < TSchema > | null > ;
987987 async findOneAndUpdate (
988988 filter : Filter < TSchema > ,
989- update : UpdateFilter < TSchema > ,
989+ update : UpdateFilter < TSchema > | Document [ ] ,
990990 options : FindOneAndUpdateOptions
991991 ) : Promise < WithId < TSchema > | null > ;
992992 async findOneAndUpdate (
993993 filter : Filter < TSchema > ,
994- update : UpdateFilter < TSchema >
994+ update : UpdateFilter < TSchema > | Document [ ]
995995 ) : Promise < WithId < TSchema > | null > ;
996996 async findOneAndUpdate (
997997 filter : Filter < TSchema > ,
998- update : UpdateFilter < TSchema > ,
998+ update : UpdateFilter < TSchema > | Document [ ] ,
999999 options ?: FindOneAndUpdateOptions
10001000 ) : Promise < WithId < TSchema > | ModifyResult < TSchema > | null > {
10011001 return await executeOperation (
You can’t perform that action at this time.
0 commit comments