Maybe I'm missing something, but the options are not passed further in the findOne
|
findOne = async ( |
|
query: Filter<T> = { }, |
|
options: GeneralRequestOptions = {}, |
|
): Promise<T | null> => { |
|
const collection = await this.getCollection(); |
|
|
|
query = this.addQueryDefaults(query, options); |
|
this.validateQuery(query, options); |
|
|
|
return collection.findOne<T>(query); |
|
}; |