@@ -1610,13 +1610,13 @@ export class Collection<TSchema extends Document = Document> {
1610
1610
* Updates documents.
1611
1611
*
1612
1612
* @deprecated use updateOne, updateMany or bulkWrite
1613
- * @param selector - The selector for the update operation.
1613
+ * @param filter - The filter for the update operation.
1614
1614
* @param update - The update operations to be applied to the documents
1615
1615
* @param options - Optional settings for the command
1616
1616
* @param callback - An optional callback, a Promise will be returned if none is provided
1617
1617
*/
1618
1618
update (
1619
- selector : Filter < TSchema > ,
1619
+ filter : Filter < TSchema > ,
1620
1620
update : UpdateFilter < TSchema > ,
1621
1621
options : UpdateOptions ,
1622
1622
callback : Callback < Document >
@@ -1627,19 +1627,19 @@ export class Collection<TSchema extends Document = Document> {
1627
1627
if ( typeof options === 'function' ) ( callback = options ) , ( options = { } ) ;
1628
1628
options = options ?? { } ;
1629
1629
1630
- return this . updateMany ( selector , update , options , callback ) ;
1630
+ return this . updateMany ( filter , update , options , callback ) ;
1631
1631
}
1632
1632
1633
1633
/**
1634
1634
* Remove documents.
1635
1635
*
1636
1636
* @deprecated use deleteOne, deleteMany or bulkWrite
1637
- * @param selector - The selector for the update operation.
1637
+ * @param filter - The filter for the remove operation.
1638
1638
* @param options - Optional settings for the command
1639
1639
* @param callback - An optional callback, a Promise will be returned if none is provided
1640
1640
*/
1641
1641
remove (
1642
- selector : Filter < TSchema > ,
1642
+ filter : Filter < TSchema > ,
1643
1643
options : DeleteOptions ,
1644
1644
callback : Callback
1645
1645
) : Promise < DeleteResult > | void {
@@ -1649,7 +1649,7 @@ export class Collection<TSchema extends Document = Document> {
1649
1649
if ( typeof options === 'function' ) ( callback = options ) , ( options = { } ) ;
1650
1650
options = options ?? { } ;
1651
1651
1652
- return this . deleteMany ( selector , options , callback ) ;
1652
+ return this . deleteMany ( filter , options , callback ) ;
1653
1653
}
1654
1654
1655
1655
/**
0 commit comments