/// <summary> /// Set request as GraphQL. /// </summary> ///<returns>Returns request builder for chaining.</returns> public static FluentHttpRequestBuilder AsGql(this FluentHttpRequestBuilder builder, GqlQuery query) => builder.AsPost().WithBody(query);
/// <summary> /// Set request as GraphQL. /// </summary> ///<returns>Returns request builder for chaining.</returns> public static FluentHttpRequestBuilder AsGql(this FluentHttpRequestBuilder builder, GqlRequest request) => builder.AsPost().WithBody(request);
/// <summary> /// Set request as a GraphQL. /// </summary> /// <returns></returns> public static FluentHttpRequestBuilder AsGql(this FluentHttpRequestBuilder builder, string query) => builder.AsPost().WithBody(new { query });
/// <summary> /// Set request as a GraphQL. /// </summary> /// <returns></returns> public static FluentHttpRequestBuilder AsGql(this FluentHttpRequestBuilder builder, string query, string?operationName = null) => builder.AsPost().WithBody(new { query, operationName });