Open JRedded opened 2 years ago
Can somebody please take a moment to say this works in the demo app, and the problem is my deployment?
I have been working on this all day and cannot get any closer. I added the missing parameters to the apollo-datasource-mongodb type and a new error popped up that some other property did not match.
If the error is mine, I will find it, but that looks like the type meant for Collection
My guess is different versions of mongodb
or @types/mongodb
? Here are the versions this package uses:
The type defs were an external contribution, and we don't have a demo or test for them, but I'd welcome a PR.
MongoDB includes its own types now. There is an NPM warning when adding @types/mongodb
I replaced my UserAPI with the one in apollo-datasources-mongodb typescript section, and still got the same error.
---ERROR---
--- APOLLO SERVER ---
--- DEPENDENCIES ---
It seems that there is a mismatch between the \ from MongoClient and the \ in apollo-datasources-mongodb.
That is the mongodb \ not fitting with the apollo-datasource-mongodb \ type, right?
Am I missing something?