-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Erroneous warning when using imperative API #1437
Comments
Hi @benhjames. I'm not sure what's going on in your case. Could you try to reproduce the error with https://github.com/apollographql/react-apollo-error-template please? |
Sure - one repo coming up. |
Behold, in all its glory: https://github.com/benhjames/react-apollo-error-template Hopefully the fact that I didn't write the mutations in the backend doesn't matter - this was sufficient to still repro the warning appearing! Just start the app, and click the button "Click me to make error", and observe the warning in the console, despite using |
Thanks a lot @benhjames, this was extremely helpful. I now know what's going on. First, there was a small problem in your code: you forgot to add
I think the proper thing to do here is to make @calebmer do you have time to update the direct store API so it respect |
Nice one, glad it was useful! Thanks for spotting the missing |
This is fixed. |
When running commands from the new imperative API, I get this warning:
However, I have ensured that
addTypename: true
in the client setup:The specific command I'm running is:
Intended outcome:
Not to display the warning, or perhaps I'm doing something wrong!
The text was updated successfully, but these errors were encountered: