-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Graphql Mongo db connector ID failure #457
Comments
I just found out that this was caused by a breaking change in graphql 14.x. And they are looking to fixing it: graphql/graphql-js#1520. Sorry about that. |
@ZachHaber any idea what I can do now to get accounts-js working without waiting for an update in graphql side? |
@williamli you can use graphql 0.13.x |
@pradel does graphql 0.13.x work with Apollo server 2? |
Yes it is :) |
@williamli you can provide a type definition for
|
@TrillCyborg so basically I need to wrap all calls that returns ID with a .toString()... I think i will just switch to 0.13 for now until this issue is resolved in 14.x |
@williamli yes, but what I have here is what I'm using. It covers all cases. There's only |
@TrillCyborg it's working fine, thanks |
I tried to follow the examples (which are out of date, so I tried looking through the different packages to get things working). I managed to get apollo server's playground running queries and mutations, but this error occurs. For some reason mongodb's ObjectId type doesn't seem to be working correctly.
Any help as to why this is happening would be appreciated. I can post the server code that I put together if it helps. I've also tried setting the mongo connector's "convertSession/UserIdToMongoObjectId" to both false and true, and neither helped.
The text was updated successfully, but these errors were encountered: