Skip to content

Commit d55022b

Browse files
authored
refactor(NODE-4754): remove unused QueryOptions export (#3455)
1 parent 1bf6ef1 commit d55022b

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src/cmap/connection.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
} from '../error';
2323
import type { ServerApi, SupportedNodeConnectionOptions } from '../mongo_client';
2424
import { CancellationToken, TypedEventEmitter } from '../mongo_types';
25-
import type { ReadPreference, ReadPreferenceLike } from '../read_preference';
25+
import type { ReadPreferenceLike } from '../read_preference';
2626
import { applySession, ClientSession, updateSessionFromResponse } from '../sessions';
2727
import {
2828
calculateDurationInMs,
@@ -68,23 +68,6 @@ const kAutoEncrypter = Symbol('autoEncrypter');
6868
/** @internal */
6969
const kDelayedTimeoutId = Symbol('delayedTimeoutId');
7070

71-
/** @internal */
72-
export interface QueryOptions extends BSONSerializeOptions {
73-
readPreference: ReadPreference;
74-
documentsReturnedIn?: string;
75-
batchSize?: number;
76-
limit?: number;
77-
skip?: number;
78-
projection?: Document;
79-
tailable?: boolean;
80-
awaitData?: boolean;
81-
noCursorTimeout?: boolean;
82-
/** @deprecated use `noCursorTimeout` instead */
83-
timeout?: boolean;
84-
partial?: boolean;
85-
oplogReplay?: boolean;
86-
}
87-
8871
/** @internal */
8972
export interface CommandOptions extends BSONSerializeOptions {
9073
command?: boolean;

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ export type {
237237
ConnectionOptions,
238238
DestroyOptions,
239239
GetMoreOptions,
240-
ProxyOptions,
241-
QueryOptions
240+
ProxyOptions
242241
} from './cmap/connection';
243242
export type {
244243
CloseOptions,

0 commit comments

Comments
 (0)