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 395d2b1 commit 3e28e07Copy full SHA for 3e28e07
src/collection.ts
@@ -549,7 +549,7 @@ export class Collection<TSchema extends Document = Document> {
549
550
async findOne(
551
filter: Filter<TSchema> = {},
552
- options: Omit<FindOneOptions, ''> & Abortable = {}
+ options: Omit<FindOneOptions, 'timeoutMode'> & Abortable = {}
553
): Promise<WithId<TSchema> | null> {
554
const opts = { ...options };
555
// Explicitly set the limit to 1 and singleBatch to true for all commands, per the spec.
0 commit comments