Example #1
0
        static void Main(/*string[] args*/)
        {
            Console.WriteLine("query:");
            Console.WriteLine(MyRequest.Query);
            var graphQlClient   = new Client.GraphQlClient("http://localhost:5000/graphql");
            var graphQlResponse = graphQlClient.PostAsync(MyRequest).GetAwaiter().GetResult();

            var data = graphQlResponse.Data;

            Console.WriteLine("response:");
            Console.WriteLine(data);
        }
Example #2
0
 /// <summary>
 /// Send an IntrospectionQuery via POST
 /// </summary>
 /// <param name="graphQlClient">The GraphQlClient</param>
 /// <returns>The GraphQlResponse</returns>
 public static async Task <GraphQlResponse> PostIntrospectionQueryAsync(this GraphQlClient graphQlClient) =>
 await graphQlClient.PostAsync(IntrospectionQuery).ConfigureAwait(false);