skip to Main Content

Typescript mismatch between mongodb <Collection> and apollo-datasources-mongodb <Collection>

The typescript demo for apollo-datasources-mongodb no longer works. It generates the same error that my own code is generating: --- ERROR --- Argument of type 'import("C:/Users/user/Code/development/server/node_modules/mongodb/mongodb").Collection<import("C:/Users/user/Code/development/server/node_modules/bson/bson").Document>' is not assignable to parameter of type 'import("C:/Users/user/Code/development/server/node_modules/apollo-datasource-mongodb/node_modules/@types/mongodb/index").Collection<import("C:/Users/user/Code/development/server/node_modules/bson/bson").Document>'. Type 'Collection' is missing the following…

VIEW QUESTION
Back To Top
Search