File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ import {
5252 FindOneAndUpdateOperation ,
5353 type FindOneAndUpdateOptions
5454} from './operations/find_and_modify' ;
55- import { FindOneOperation } from './operations/find_one_operation' ;
5655import {
5756 CreateIndexesOperation ,
5857 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