-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript mismatch between mongodb <Collection> and apollo-datasources-mongodb <Collection> #106
Comments
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 does not match with Collection. If this is not a mature project, I will go back to Redux. |
My guess is different versions of apollo-datasource-mongodb/package.json Lines 20 to 37 in 6eff2ac
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 |
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 <Collection> from MongoClient and the <Collection> in apollo-datasources-mongodb.
That is the mongodb <Collection> not fitting with the apollo-datasource-mongodb <Collection> type, right?
Am I missing something?
The text was updated successfully, but these errors were encountered: