You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone, not sure if this is something I'm doing, but I am trying to use the latest middleware features referenced here (#170), and not able to trigger the responseMiddleware function (requestMiddleware seems to work fine though). Here's the basic setup of my code:
As you can see I also set the errorPolicy: "all" and also switched to a rawRequest to see if that would help, but still don't get any of the console logs under the responseMiddleware. Any guidance or help would be very much appreciated here, thank you in advance!
The text was updated successfully, but these errors were encountered:
@minhazfm have you tested it with successful queries, or only with queries that failed? I found a section of code that might be missing in the index file to capture the error responses.
A quick fix could be to add catches in the following lines, I leave it as a recommendation but I'm not sure if it will be the best solution, because I could be omitting some detail of the intended use of this feature.
Hey everyone, not sure if this is something I'm doing, but I am trying to use the latest middleware features referenced here (#170), and not able to trigger the
responseMiddleware
function (requestMiddleware
seems to work fine though). Here's the basic setup of my code:GraphQL Request Service Hook
Test Query Hook
As you can see I also set the
errorPolicy: "all"
and also switched to a rawRequest to see if that would help, but still don't get any of the console logs under theresponseMiddleware
. Any guidance or help would be very much appreciated here, thank you in advance!The text was updated successfully, but these errors were encountered: