title: How to deserialize the GraphQL server response to object?
body: <p>How to convert the GraphQL response to object on the client?
  I do this way:</p>
  <pre><code>        var request = new GraphQLRequest
          {
              Query = @&quot;{customer(id:4){id,firstName,lastName,contact,email}}&quot;
          };
          var jsonSerializer = new njs.NewtonsoftJsonSerializer();
          using var graphQLClient = new GraphQLHttpClient(&quot;https://localhost:5011/graphql/&quot;, jsonSerializer);
          //var response = await graphQLClient.SendQueryAsync&lt;Customer&gt;(request);
          var response = await graphQLClient.SendQueryAsync&lt;dynamic&gt;(request);
          var graphQLQueryType = @&quot;customer&quot;;
          var cust = response;//.Data..customer;
  
          var stringResult = response.Data.ToString();
          var resultzzz = JsonConvert.DeserializeObject&lt;List&lt;Customer&gt;&gt;(stringResult);
  </code></pre>
  <p>and the result as a string is:
  stringResult = &quot;{\r\n &quot;customer&quot;: {\r\n &quot;id&quot;: &quot;4&quot;,\r\n &quot;firstName&quot;: &quot;Name#4&quot;,\r\n &quot;lastName&quot;: &quot;LastName#4&quot;,\r\n &quot;contact&quot;: &quot;Contact#4&quot;,\r\n &quot;email&quot;: &quot;you#4@mai.com&quot;\r\n }\r\n}&quot;</p>
  <p>It is ok.
  But I need to deserialize this response to object class Customer.</p>
  <p>and this
  var resultzzz = JsonConvert.DeserializeObject(stringResult);
  gives me:
  ex = {&quot;Cannot deserialize the current JSON object (e.g. {&quot;name&quot;:&quot;value&quot;}) into type 'System.Collections.Generic.List1[GraphQL.Client.Example.Customer]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\r\nTo fix this error eith...
  `</p>
  <p>What I do wrong? How to fix it?</p>