-
Notifications
You must be signed in to change notification settings - Fork 65
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 error when iniatilising data source #54
Comments
Was it the same version of this lib in the other project?
So there are two Sorry, I haven't learned typescript yet, so I won't be much help, but happy to merge a PR if someone fixes this |
@lorensr thanks for the reply! Both projects are using the exact same version. I have just disabled ts checking for this line while I wait for a fix. |
@dan-cooke can you post which versions of @types/mongodb do you have from your yarn.lock or package-lock.json? |
@9at8 resolved 0.3.0 for both projects I updated my original post with Typescript and node versions as well! thanks |
I have the same error and it's caused by mongodb having released its own types that conflict with those from @type/mongodb
|
I am encountering the following error when attempting to follow the documentation
Here is my ApolloServer iniatilisation
The line that throws the error is
My Profiles data source looks as follows:
I am importing the following Profile type generated from my GraphQL schema by Graphql codegen
The weird thing is this worked on my other project before switching over to a fresh project - same code from what I can tell.
Edit:
I forgot to post versions, apologies
apollo-datasource-mongodb
0.3.0node
: 15.11.0typescript
: 4.2.3The text was updated successfully, but these errors were encountered: