diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index ba27943739..3d0ebf566d 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -7,6 +7,7 @@ // Gaurav Lahoti // Mariano Cortesi // Enrico Picci +// Alexander Christie // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -636,7 +637,7 @@ export interface Collection { watch(pipeline?: Object[], options?: ChangeStreamOptions & { session?: ClientSession }): ChangeStream; } -type FilterQuery = { +export type FilterQuery = { [P in keyof T]?: T[P] | { $eq?: T[P]; $gt?: T[P];