title: Getting Internal Server Error 500 on Graphql Mutation
body: <p><a href="https://i.stack.imgur.com/amrpf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/amrpf.png" alt="As you can see that this query is showing the correct error message" /></a></p>
  <pre><code>viewModelScope.launch {
              val req = RequestCodeMutation(phoneNumber)
              val response = try {
                  ApolloClientManager
                      .apolloClient
                      .suspendMutate(req)
              }
              catch (e: ApolloException) {
                  println(e.message)
                  isError.value = true
                  null
              }
              finally {
                  loading.value = false
              }
              val requestCode = response?.data?.requestCode
              println(response?.errors)
  }
  </code></pre>
  <pre><code>suspend fun &lt;D : Operation.Data, T, V : Operation.Variables&gt; ApolloClient.suspendMutate(mutation: Mutation&lt;D, T, V&gt;): Response&lt;T&gt; =
      mutate(mutation).toDeferred().await()
  </code></pre>
  <p>This is my validator on server side. It is shown correctly on Graphiql, however, I am unable to receive this message on client side.</p>
  <pre><code>requestCode = async (resolve, source, args, context, info) =&gt; {
          let { phoneNumber } = args;
  
          phoneNumber = validator.trim(phoneNumber);
          Object.assign(args, { phoneNumber });
  
          if (!validator.isMobilePhone(phoneNumber)) {
              throw new UserInputError('Invalid phone number provided!');
          }
  
          return resolve(source, args, context, info);
      }
  </code></pre>
  <p><code>ApolloException.message</code> is showing Internal Server Error and <code>response?.errors</code> is <code>null</code>.
  <code>response?.errors</code> is not supposed to be <code>null</code> and show the proper error message that is being shown on GraphiQL.</p>