I'm using the GraphQL Apollo Client. And I'm trying to retrieve the results from a query with errors.
How do I retrieve the data, even when an error is returned in the same response?
This automatically catches the error. Instead, I want it to access the data.
this.client.query({
query: gql(query),
variables: variables
}).then(function ({ data }) {
return data;
}).catch(error => console.log(error));
Couldn't find anything in Apollo docs about this. Any ideas?