title: Unable to retrieve errors occured in Graphql mutation in flutter project
body: <p>I am using the package <a href="https://pub.dev/packages/graphql_flutter" rel="noreferrer">graphql_flutter</a> for GraphQL operations in my flutter app. The queries and mutations are going well but I cannot retrieve the errors by following the ways mentioned in their doc. Every time I receive a generic error message which is,</p>
  <pre><code>ClientException: Failed to connect to http://127.0.0.1:3006/graphql: 
  </code></pre>
  <p>That I get by doing,</p>
  <pre><code>print(result.exception.toString());
  </code></pre>
  <p>My mutation looks like,</p>
  <pre><code>final MutationOptions mutationOptions = MutationOptions(
    documentNode: gql(mutationString),
    variables: vars
  );
  
  final QueryResult result = await _instance._client.mutate(mutationOptions);
  
  if (result.hasException) {
    // none of the following prints the expected error.
    print(result.exception.clientException.message);
    print(result.exception.graphqlErrors);
    print(result.exception.toString());
  }
  
  print(result.data);
  
  return result.data;
  </code></pre>
  <p>Whereas in the apollo client, My error is :</p>
  <pre><code>{
    &quot;errors&quot;: [
      {
        &quot;message&quot;: &quot;Invalid Phone number provided&quot;,
        &quot;locations&quot;: [
          {
            &quot;line&quot;: 2,
            &quot;column&quot;: 3
          }
        ],
        &quot;path&quot;: [
          &quot;otp&quot;
        ],
        &quot;extensions&quot;: {
          &quot;code&quot;: &quot;INTERNAL_SERVER_ERROR&quot;,
           ....
  </code></pre>
  <p>But I get none of that.</p>
  <p>Note: The success response is coming as expected. I would like to know how can I get the graphql errors.</p>