how do I access `error` field from `onComplete` or `data` field from `onError` in Apollo client

how do I access `error` field from `onComplete` or `data` field from `onError` in Apollo client

We have a graphql mutation call that can possibly return a response with both the errors field and data field: { “data”: // data, “errors”: …

 

Read More Google Alert – graphql