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';
1111import { AbstractCursor } from './abstract_cursor' ;
1212
1313/** @public */
14- export type RunCommandCursorOptions = {
14+ export type RunCursorCommandOptions = {
1515 readPreference ?: ReadPreferenceLike ;
1616 session ?: ClientSession ;
1717} & BSONSerializeOptions ;
@@ -95,7 +95,7 @@ export class RunCommandCursor extends AbstractCursor {
9595 private db : Db ;
9696
9797 /** @internal */
98- constructor ( db : Db , command : Document , options : RunCommandCursorOptions = { } ) {
98+ constructor ( db : Db , command : Document , options : RunCursorCommandOptions = { } ) {
9999 super ( db . s . client , ns ( db . namespace ) , options ) ;
100100 this . db = db ;
101101 this . command = Object . freeze ( { ...command } ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Collection, CollectionOptions } from './collection';
55import * as CONSTANTS from './constants' ;
66import { AggregationCursor } from './cursor/aggregation_cursor' ;
77import { 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' ;
99import { MongoAPIError , MongoInvalidArgumentError } from './error' ;
1010import type { MongoClient , PkFactory } from './mongo_client' ;
1111import type { TODO_NODE_3286 } from './mongo_types' ;
@@ -534,7 +534,7 @@ export class Db {
534534 * @param command - The command that will start a cursor on the server.
535535 * @param options - Configurations for running the command, bson options will apply to getMores
536536 */
537- runCursorCommand ( command : Document , options ?: RunCommandCursorOptions ) : RunCommandCursor {
537+ runCursorCommand ( command : Document , options ?: RunCursorCommandOptions ) : RunCommandCursor {
538538 return new RunCommandCursor ( this , command , options ) ;
539539 }
540540}
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ export type {
277277 ChangeStreamAggregateRawResult ,
278278 ChangeStreamCursorOptions
279279} from './cursor/change_stream_cursor' ;
280- export type { RunCommandCursorOptions } from './cursor/run_command_cursor' ;
280+ export type { RunCursorCommandOptions } from './cursor/run_command_cursor' ;
281281export type { DbOptions , DbPrivate } from './db' ;
282282export type { AutoEncrypter , AutoEncryptionOptions , AutoEncryptionTlsOptions } from './deps' ;
283283export type { Encrypter , EncrypterOptions } from './encrypter' ;
You can’t perform that action at this time.
0 commit comments