@@ -13,7 +13,7 @@ import type { CollationOptions, CommandOperationOptions } from '../operations/co
13
13
import { DeleteOperation , type DeleteStatement , makeDeleteStatement } from '../operations/delete' ;
14
14
import { executeOperation } from '../operations/execute_operation' ;
15
15
import { InsertOperation } from '../operations/insert' ;
16
- import { AbstractOperation , type Hint } from '../operations/operation' ;
16
+ import { AbstractCallbackOperation , type Hint } from '../operations/operation' ;
17
17
import { makeUpdateStatement , UpdateOperation , type UpdateStatement } from '../operations/update' ;
18
18
import type { Server } from '../sdam/server' ;
19
19
import type { Topology } from '../sdam/topology' ;
@@ -881,14 +881,18 @@ export interface BulkWriteOptions extends CommandOperationOptions {
881
881
* We would like this logic to simply live inside the BulkWriteOperation class
882
882
* @internal
883
883
*/
884
- class BulkWriteShimOperation extends AbstractOperation {
884
+ class BulkWriteShimOperation extends AbstractCallbackOperation {
885
885
bulkOperation : BulkOperationBase ;
886
886
constructor ( bulkOperation : BulkOperationBase , options : BulkWriteOptions ) {
887
887
super ( options ) ;
888
888
this . bulkOperation = bulkOperation ;
889
889
}
890
890
891
- execute ( server : Server , session : ClientSession | undefined , callback : Callback < any > ) : void {
891
+ executeCallback (
892
+ server : Server ,
893
+ session : ClientSession | undefined ,
894
+ callback : Callback < any >
895
+ ) : void {
892
896
if ( this . options . session == null ) {
893
897
// An implicit session could have been created by 'executeOperation'
894
898
// So if we stick it on finalOptions here, each bulk operation
0 commit comments