graphql-net icon indicating copy to clipboard operation
graphql-net copied to clipboard

Convert IQueryable to GraphQL query

Open twchiam opened this issue 4 years ago • 0 comments

Hi folks,

I have a requirement to convert IQueryable<Entity> to GraphQL query. Is it possible to use this library to convert IQueryable to GraphQLRequest object of https://github.com/graphql-dotnet/graphql-client or Graphql query in string?

var heroRequest = new GraphQLRequest {
    Query = @"
    {
        hero {
            name
        }
    }"
};

twchiam avatar May 16 '21 02:05 twchiam