File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { Callback, ns } from '../utils';
11
11
import { AbstractCursor } from './abstract_cursor' ;
12
12
13
13
/** @public */
14
- export type RunCommandCursorOptions = {
14
+ export type RunCursorCommandOptions = {
15
15
readPreference ?: ReadPreferenceLike ;
16
16
session ?: ClientSession ;
17
17
} & BSONSerializeOptions ;
@@ -95,7 +95,7 @@ export class RunCommandCursor extends AbstractCursor {
95
95
private db : Db ;
96
96
97
97
/** @internal */
98
- constructor ( db : Db , command : Document , options : RunCommandCursorOptions = { } ) {
98
+ constructor ( db : Db , command : Document , options : RunCursorCommandOptions = { } ) {
99
99
super ( db . s . client , ns ( db . namespace ) , options ) ;
100
100
this . db = db ;
101
101
this . command = Object . freeze ( { ...command } ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Collection, CollectionOptions } from './collection';
5
5
import * as CONSTANTS from './constants' ;
6
6
import { AggregationCursor } from './cursor/aggregation_cursor' ;
7
7
import { ListCollectionsCursor } from './cursor/list_collections_cursor' ;
8
- import { RunCommandCursor , type RunCommandCursorOptions } from './cursor/run_command_cursor' ;
8
+ import { RunCommandCursor , type RunCursorCommandOptions } from './cursor/run_command_cursor' ;
9
9
import { MongoAPIError , MongoInvalidArgumentError } from './error' ;
10
10
import type { MongoClient , PkFactory } from './mongo_client' ;
11
11
import type { TODO_NODE_3286 } from './mongo_types' ;
@@ -534,7 +534,7 @@ export class Db {
534
534
* @param command - The command that will start a cursor on the server.
535
535
* @param options - Configurations for running the command, bson options will apply to getMores
536
536
*/
537
- runCursorCommand ( command : Document , options ?: RunCommandCursorOptions ) : RunCommandCursor {
537
+ runCursorCommand ( command : Document , options ?: RunCursorCommandOptions ) : RunCommandCursor {
538
538
return new RunCommandCursor ( this , command , options ) ;
539
539
}
540
540
}
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ export type {
277
277
ChangeStreamAggregateRawResult ,
278
278
ChangeStreamCursorOptions
279
279
} from './cursor/change_stream_cursor' ;
280
- export type { RunCommandCursorOptions } from './cursor/run_command_cursor' ;
280
+ export type { RunCursorCommandOptions } from './cursor/run_command_cursor' ;
281
281
export type { DbOptions , DbPrivate } from './db' ;
282
282
export type { AutoEncrypter , AutoEncryptionOptions , AutoEncryptionTlsOptions } from './deps' ;
283
283
export type { Encrypter , EncrypterOptions } from './encrypter' ;
You can’t perform that action at this time.
0 commit comments