-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hey folks 👋 I'm struggling with responding with a server error. I use the typical mirage way. Say, I want to simulate 502
s and test Apollo's retry mechanism, so under some fake conditions I return this for a query:
return new Response(502);
But what I get returned instead is wrapped in GraphQL error. It looks like miragejs/graphql
(or something internally) treats my response with 502
as a regular response and complains that the data is not returned properly:
Is it possible that miragejs/graphql
is not aware that it should "re-throw" (pass) the error? Could someone give me pointers on where I should look to fill the gap?
Metadata
Metadata
Assignees
Labels
No labels