-
Notifications
You must be signed in to change notification settings - Fork 35
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
__typename being sent to SQL backend as part of a query? #24
Comments
Hi Here's the code that generates the select clause. Try debugging that. I have no idea why |
Thanks for the quick response!!! I did try that, using:
but then it just comes back with a lot of errors complaining about missing __typenames... |
whoops sorry I replied on the wrong forum! |
http://graphql.org/learn/queries/#meta-fields It seems that objection-graphql needs to exclude that property. |
That did it! I modified in _filterForSelects() (line 381:
to
Thank you! I just needed a prompt in the right direction. |
This is now fixed in master. I'll release a new patch version soon. |
Ha! you beat me to the PR, and I only took 3 minutes! I've never had an author patch an issue that fast on GitHub before, Kudos to you! |
Hi @koskimas,
I'm experiencing a problem with __typename appearing in the final query string being sent to the SQL engine, I'm hoping you can help here. Have you seen anything like this before, or could you point me in a direction that might help?
I'm using Apollo Server Express 1.2.0 and Apollo Client 2.0.2.
I have a simple query that works fine in GraphiQL, but not when sent via the client.
and I'm getting an error back as follows:
I've tried raising issues on the GitHub for apollo-client, apollo-server and vue-apollo, but I've not had any response there :(
Any help you can give would be greatly appreciated!
Thank you
Adrian
The text was updated successfully, but these errors were encountered: