apollo-client-devtools
apollo-client-devtools copied to clipboard
Server side mutation errors are not reported in the explorer
Intended outcome:
Server side error when executing a mutation shows up in the result pane.
Actual outcome:
The execute button hangs forever and the error is reported as an uncaught in the main console log, nothing shows in the explorer result pane.
This seems to be limited only to Mutations, same works just fine for Queries. Also, using the Apollo Studio webapp works correctly for both Queries & Mutations.
How to reproduce the issue:
- Open the explorer tab
- Execute a mutation that results in a server error
Desktop (please complete the following information):
- OS: Linux
- Browser: Brave
- Browser version: 1.61.109
- Extension version 4.3.1
Hey @neochrome 👋
Appreciate the issue! I've been thinking about this a bit lately too an definitely agree that we should do a better job of surfacing errors in operations. No guarantees on a timeline, but I think this makes a lot of sense 🙂
Oops, sorry my eyes skipped over the part about the explorer pane, so ignore my last comment. We use a bit of a custom wrapper around the explorer that ends up using your actual Apollo Client instance to execute the query, so its possible things have changed that we may need to take a look at further. Appreciate you surfacing this!