c# – Types from schema.graphql for the return type by SendQueryAsync

I am making a client in c# that will get data from a graphql endpoint. To know what I can get from the endpoint, I did an introspection with jetbrains grapqhl tool, and got a schema.grapqhl file describing the endpoint.

Now I want to use that to describe the result of a request. Is it possible to use the schema.graphql as a return type for a query?

I am using Graphql.client to build and send requests. I would like to do something like this:

var response = gqlClient.SendQueryAsync(query)

Where EndpointResponse is typed by schema.graphql. Is that somehow possible?

Read more here: Source link