You can try/catch the Apollo request. it throws an error when it can’t communicate to the server.
François
10/09/2024, 8:22 PM
A GraphQL response can’t have an http code different than 200 by design.
a
AndreiBogdan
10/10/2024, 7:40 AM
I managed to do it, but casting the throwable to an ApolloNEtworkException and then checking if either IOException or NSError and it worked ... but thanks for the info, i did not know that about GQL, the 200 response code.