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 823aee5 commit caf668aCopy full SHA for caf668a
src/collection.ts
@@ -520,7 +520,7 @@ export class Collection<TSchema extends Document = Document> {
520
521
async findOne(
522
filter: Filter<TSchema> = {},
523
- options: Omit<FindOneOptions, ''> & Abortable = {}
+ options: Omit<FindOneOptions, 'timeoutMode'> & Abortable = {}
524
): Promise<WithId<TSchema> | null> {
525
const opts = { ...options };
526
// Explicitly set the limit to 1 and singleBatch to true for all commands, per the spec.
0 commit comments