graphql-dotnet / graphql-dotnet/graphql-client

How to use SendQueryAsync when the query returns multiple collections of results ?

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

Description

I am new to GrahpQL and I am working on an integration project where our customer has a GraphQL API.
I have a query that looks like this:

```graphql
{
maskiner {
masktyp
mnr
kundnr
avtalnr
install
plac
gatuadr
postnr
ort
land
tel
email
portkod
ref
distrikt
kategori
}
maskinty {
artnr
namn
}
mask3 {
mnr
projektnr_r1
}
projekt {
nr
namn
}
}

```

this results in a json that contains 4 collections of data, I was expecting to get back json so that I could use the GetDataFieldAs method to just parse this out as 4 diffrent collections.
But now I saw that that option has been removed and now I have to create a type that matches the result, how do I do that ?

/Andreas

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.