Error: retriedResult.subscribe is not a function?

Hi all,
I’m using graphql query in my react-native project. when I’m getting status code 401, then in the onError() method. I’m getting a crash with a message: ‘retriedResult.subscribe is not a function’. so please let me know if anyone already fixed it or if they know of any solution.