RxApollo
RxApollo copied to clipboard
How to get Error Detail
Can you help me please.
I try to get current error received in:
}, onError: { (error) in print(error) })
But i can not access to the error only y can see in console : Optional(BaseViper.RxApolloError.graphQLErrors([No such user found]))
You must cast or switch on the error :
}, onError: { (error) in
switch error {
case let RxApolloError.graphQLErrors(errors):
// you have now your qualified `errors` here
default:
break
}