File tree Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import {
39
39
type EstimatedDocumentCountOptions
40
40
} from './operations/estimated_document_count' ;
41
41
import { executeOperation } from './operations/execute_operation' ;
42
- import { type FindOneOptions , type FindOptions } from './operations/find' ;
42
+ import { type FindOptions } from './operations/find' ;
43
43
import {
44
44
FindOneAndDeleteOperation ,
45
45
type FindOneAndDeleteOptions ,
@@ -48,7 +48,7 @@ import {
48
48
FindOneAndUpdateOperation ,
49
49
type FindOneAndUpdateOptions
50
50
} from './operations/find_and_modify' ;
51
- import { FindOneOperation } from './operations/find_one_operation ' ;
51
+ import { FindOneOperation , type FindOneOptions } from './operations/find_one ' ;
52
52
import {
53
53
CreateIndexesOperation ,
54
54
type CreateIndexesOptions ,
Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ export type {
529
529
FindOneAndReplaceOptions ,
530
530
FindOneAndUpdateOptions
531
531
} from './operations/find_and_modify' ;
532
+ export type { FindOneOptions } from './operations/find_one' ;
532
533
export type { IndexInformationOptions } from './operations/indexes' ;
533
534
export type {
534
535
CreateIndexesOptions ,
Original file line number Diff line number Diff line change @@ -81,16 +81,6 @@ export interface FindOptions<TSchema extends Document = Document>
81
81
timeoutMode ?: CursorTimeoutMode ;
82
82
}
83
83
84
- /** @public */
85
- export interface FindOneOptions extends FindOptions {
86
- /** @deprecated Will be removed in the next major version. User provided value will be ignored. */
87
- batchSize ?: number ;
88
- /** @deprecated Will be removed in the next major version. User provided value will be ignored. */
89
- limit ?: number ;
90
- /** @deprecated Will be removed in the next major version. User provided value will be ignored. */
91
- noCursorTimeout ?: boolean ;
92
- }
93
-
94
84
/** @internal */
95
85
export class FindOperation extends CommandOperation < CursorResponse > {
96
86
/**
File renamed without changes.
You can’t perform that action at this time.
0 commit comments