We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e50c11a commit 93c1d6dCopy full SHA for 93c1d6d
src/collection.ts
@@ -552,7 +552,7 @@ export class Collection<TSchema extends Document = Document> {
552
553
async findOne(
554
filter: Filter<TSchema> = {},
555
- options: Omit<FindOneOptions, ''> & Abortable = {}
+ options: Omit<FindOneOptions, 'timeoutMode'> & Abortable = {}
556
): Promise<WithId<TSchema> | null> {
557
const opts = { ...options };
558
// Explicitly set the limit to 1 and singleBatch to true for all commands, per the spec.
0 commit comments