Open
Description
I'm trying to send this mutation:
GraphQLRequest graphQLRequest = new GraphQLRequest()
{
Query = @"mutation(
$order_code: Int!,
$industry_code: String!,
$wholesaler_code: String!,
$wholesaler_order_code: String,
$payment_term: String,
$consideration: String,
$is_free_good_discount: Boolean,
$processed_at: String!,
$invoice_at: String,
$products: [ResponseProductInput]!) {
createResponse(
order_code: $order_code,
industry_code: $industry_code,
wholesaler_code: $wholesaler_code,
wholesaler_order_code: $wholesaler_order_code,
payment_term: $payment_term,
consideration: $consideration,
is_free_good_discount: $is_free_good_discount,
processed_at: $processed_at,
invoice_at: $invoice_at,
products: $products
)
{
id,
outcome,
content,
imported_at
}
}",
Variables = new
{
orderResponse.order_code,
orderResponse.industry_code,
orderResponse.wholesaler_code,
orderResponse.wholesaler_order_code,
orderResponse.payment_term,
orderResponse.consideration,
orderResponse.is_free_good_discount,
orderResponse.processed_at,
orderResponse.invoice_at,
orderResponse.products
}
};
The attribute is_free_good_discount is a Boolean type with false value.
But when I send this request, the response is always:
Variable "$is_free_good_discount" got invalid value "0"; Expected type Boolean; Cannot represent value as boolean: 0
If I inspect the request with Fiddler, is_free_good_discount value is "false"