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 {
3939 type EstimatedDocumentCountOptions
4040} from './operations/estimated_document_count' ;
4141import { executeOperation } from './operations/execute_operation' ;
42- import { type FindOneOptions , type FindOptions } from './operations/find' ;
42+ import { type FindOptions } from './operations/find' ;
4343import {
4444 FindOneAndDeleteOperation ,
4545 type FindOneAndDeleteOptions ,
@@ -48,7 +48,7 @@ import {
4848 FindOneAndUpdateOperation ,
4949 type FindOneAndUpdateOptions
5050} from './operations/find_and_modify' ;
51- import { FindOneOperation } from './operations/find_one_operation ' ;
51+ import { FindOneOperation , type FindOneOptions } from './operations/find_one ' ;
5252import {
5353 CreateIndexesOperation ,
5454 type CreateIndexesOptions ,
Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ export type {
529529 FindOneAndReplaceOptions ,
530530 FindOneAndUpdateOptions
531531} from './operations/find_and_modify' ;
532+ export type { FindOneOptions } from './operations/find_one' ;
532533export type { IndexInformationOptions } from './operations/indexes' ;
533534export type {
534535 CreateIndexesOptions ,
Original file line number Diff line number Diff line change @@ -81,16 +81,6 @@ export interface FindOptions<TSchema extends Document = Document>
8181 timeoutMode ?: CursorTimeoutMode ;
8282}
8383
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-
9484/** @internal */
9585export class FindOperation extends CommandOperation < CursorResponse > {
9686 /**
File renamed without changes.
You can’t perform that action at this time.
0 commit comments