@@ -21,16 +21,7 @@ import type { OperationParent } from './operations/command';
2121import { type AsyncDisposable , configureResourceManagement } from './resource_management' ;
2222import type { ServerSessionId } from './sessions' ;
2323import { CSOTTimeoutContext , type TimeoutContext } from './timeout' ;
24- import { filterOptions , getTopology , type MongoDBNamespace , squashError } from './utils' ;
25-
26- const CHANGE_STREAM_OPTIONS = [
27- 'resumeAfter' ,
28- 'startAfter' ,
29- 'startAtOperationTime' ,
30- 'fullDocument' ,
31- 'fullDocumentBeforeChange' ,
32- 'showExpandedEvents'
33- ] as const ;
24+ import { getTopology , type MongoDBNamespace , squashError } from './utils' ;
3425
3526const CHANGE_DOMAIN_TYPES = {
3627 COLLECTION : Symbol ( 'Collection' ) ,
@@ -904,7 +895,7 @@ export class ChangeStream<
904895 private _createChangeStreamCursor (
905896 options : ChangeStreamOptions | ChangeStreamCursorOptions
906897 ) : ChangeStreamCursor < TSchema , TChange > {
907- const changeStreamStageOptions = filterOptions ( options , CHANGE_STREAM_OPTIONS ) ;
898+ const changeStreamStageOptions : Document = { ... options } ;
908899 if ( this . type === CHANGE_DOMAIN_TYPES . CLUSTER ) {
909900 changeStreamStageOptions . allChangesForCluster = true ;
910901 }
0 commit comments