graphql-dotnet / graphql-dotnet/graphql-client

Problem with GraphQL.Client.Abstractions

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

Description

Hi

I have problem with GraphQL.Client.Abstractions. I have portal with graphQL answer from portal to my request looks:

```
{
"data": {
"pages": {
"single": {
"title": "Tworzenie backup",
"id": 5,
"path": "database/backup"
}
}
}
}
```
When I use

`var answer_request = await graphQLClient.SendMutationAsync(request);`

where T is class -> DataPageSearch
```
public class DataPageSearch
{
public Pages Pages { get; set; }
}

public class Pages
{
public Search Single{ get; set; }
}

public class Single
{
public List Results { get; set; }
}

public class Result
{
public string id { get; set; }
public string path { get; set; }
public string title { get; set; }
}
```
it's evrything ok. But when i try use GraphQL.Client.Abstractions and

`var answer_request = await graphQLClient.SendMutationAsync(request, () => new {list = new Single()});`

always i get null. Where is problem. Thanks.

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.