graphql-dotnet / graphql-dotnet/graphql-client

Why I do not receive a real object?

Open
#362 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
648
Forks
136
PR merge metrics
No merged PRs in 30d

Description

I run a GraphQL client and send the queries

```
var response3 = await client2.SendQueryAsync(request2);
var response2 = await client2.SendQueryAsync(request2);
var response1 = await client2.SendQueryAsync(request2);
```
There is
```
public class ADescriptorResponse2
{
public ADescriptor aDescriptor { get; set; }
}
public class ADescriptor
{
public long Action { get; set; }
public string Name { get; set; }
public string Description { get; set; }
}

```

But in the 1st case
var response3 = await client2.SendQueryAsync(request2);
i receive the response3.Data ==null, type ADescriptorResponse2
In other both cases I receive Data correct but it isNewtonsoft.Json.Linq.JObject type.
Why I do not receive the Data of ADescriptorResponse2 filled with data?
What is incorrect?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.