Open eduardofavarin opened 5 years ago
Can you please show the raw response from the server?
El lun., 12 ago. 2019 16:46, Eduardo Favarin notifications@github.com escribió:
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"
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/graphql-dotnet/graphql-client/issues/128?email_source=notifications&email_token=ABSH5RL5JITYDBYMNLXUNADQEFZURA5CNFSM4ILB7IB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HEXOMFQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABSH5RKSGM37KLMIWAQKADDQEFZURANCNFSM4ILB7IBQ .
Of course, @deinok.
{
"data":[ ],
"errors":[
{
"message":"Variable \"$is_free_good_discount\" got invalid value \"0\"; Expected type Boolean; Cannot represent value as boolean: 0",
"extensions":{
"category":"graphql"
},
"locations":[
{
"line":1,
"column":161
}
],
"trace":[
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":74,
"call":"GraphQL\\Utils\\Value::coercionError('Expected type Boolean', instance of GraphQL\\Language\\AST\\VariableDefinitionNode, null, 'Cannot represent value as boolean: 0', instance of GraphQL\\Error\\Error)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/Values.php",
"line":61,
"call":"GraphQL\\Utils\\Value::coerceValue('0', GraphQLType: Boolean, instance of GraphQL\\Language\\AST\\VariableDefinitionNode)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php",
"line":172,
"call":"GraphQL\\Executor\\Values::getVariableValues(instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\NodeList(10), array(8))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php",
"line":90,
"call":"GraphQL\\Executor\\ReferenceExecutor::buildExecutionContext(instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, array(2), instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php",
"line":152,
"call":"GraphQL\\Executor\\ReferenceExecutor::create(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php",
"line":165,
"call":"GraphQL\\Executor\\Executor::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php",
"line":98,
"call":"GraphQL\\GraphQL::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, '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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', null, instance of App\\Models\\User, array(8), null, null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQL.php",
"line":110,
"call":"GraphQL\\GraphQL::executeQuery(instance of GraphQL\\Type\\Schema, '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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', null, instance of App\\Models\\User, array(8), null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQL.php",
"line":95,
"call":"Rebing\\GraphQL\\GraphQL::queryAndReturnResult('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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', array(8), array(3))"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQLController.php",
"line":51,
"call":"Rebing\\GraphQL\\GraphQL::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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', array(8), array(3))"
},
{
"call":"Rebing\\GraphQL\\GraphQLController::query(instance of Illuminate\\Http\\Request, 'default')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php",
"line":54,
"function":"call_user_func_array(array(2), array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php",
"line":45,
"call":"Illuminate\\Routing\\Controller::callAction('query', array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
"line":212,
"call":"Illuminate\\Routing\\ControllerDispatcher::dispatch(instance of Illuminate\\Routing\\Route, instance of Rebing\\GraphQL\\GraphQLController, 'query')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
"line":169,
"call":"Illuminate\\Routing\\Route::runController()"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":658,
"call":"Illuminate\\Routing\\Route::run()"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":30,
"call":"Illuminate\\Routing\\Router::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/app\/Http\/Middleware\/GraphQLLogger.php",
"line":23,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"App\\Http\\Middleware\\GraphQLLogger::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/tymon\/jwt-auth\/src\/Middleware\/GetUserFromToken.php",
"line":46,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Tymon\\JWTAuth\\Middleware\\GetUserFromToken::handle(instance of Illuminate\\Http\\Request, instance of Closure, 'api')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":102,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":660,
"call":"Illuminate\\Pipeline\\Pipeline::then(instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":635,
"call":"Illuminate\\Routing\\Router::runRouteWithinStack(instance of Illuminate\\Routing\\Route, instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":601,
"call":"Illuminate\\Routing\\Router::runRoute(instance of Illuminate\\Http\\Request, instance of Illuminate\\Routing\\Route)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":590,
"call":"Illuminate\\Routing\\Router::dispatchToRoute(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":176,
"call":"Illuminate\\Routing\\Router::dispatch(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":30,
"call":"Illuminate\\Foundation\\Http\\Kernel::Illuminate\\Foundation\\Http\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
"line":30,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
"line":30,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php",
"line":27,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/CheckForMaintenanceMode.php",
"line":46,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/app\/Http\/Middleware\/AcceptJson.php",
"line":15,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"App\\Http\\Middleware\\AcceptJson::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":102,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":151,
"call":"Illuminate\\Pipeline\\Pipeline::then(instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":116,
"call":"Illuminate\\Foundation\\Http\\Kernel::sendRequestThroughRouter(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/public\/index.php",
"line":54,
"call":"Illuminate\\Foundation\\Http\\Kernel::handle(instance of Illuminate\\Http\\Request)"
}
]
},
{
"message":"Variable \"$products\" got invalid value [{\"ean\":\"7891058169015\",\"invoice_ean\":\"7891058169015\",\"response_amount\":\"6\",\"unit_discount_percentage\":\"8\",\"unit_discount_value\":\"5.6616\",\"unit_net_value\":\"65.1084\",\"monitored\":\"0\",\"industry_consideration\":\"000\"},{\"ean\":\"7891058006716\",\"invoice_ean\":\"7891058006716\",\"response_amount\":\"0\",\"unit_discount_percentage\":\"8\",\"unit_discount_value\":\"3.2288\",\"unit_net_value\":\"37.1312\",\"monitored\":\"0\",\"industry_consideration\":\"201\"}]; Expected type Boolean at value[0].monitored; Cannot represent value as boolean: 0",
"extensions":{
"category":"graphql"
},
"locations":[
{
"line":1,
"column":239
}
],
"trace":[
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":74,
"call":"GraphQL\\Utils\\Value::coercionError('Expected type Boolean', instance of GraphQL\\Language\\AST\\VariableDefinitionNode, array(2), 'Cannot represent value as boolean: 0', instance of GraphQL\\Error\\Error)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":53,
"call":"GraphQL\\Utils\\Value::coerceValue('0', GraphQLType: Boolean, instance of GraphQL\\Language\\AST\\VariableDefinitionNode, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":170,
"call":"GraphQL\\Utils\\Value::coerceValue('0', GraphQLType: Boolean, instance of GraphQL\\Language\\AST\\VariableDefinitionNode, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":132,
"call":"GraphQL\\Utils\\Value::coerceValue(array(8), GraphQLType: ResponseProductInput, instance of GraphQL\\Language\\AST\\VariableDefinitionNode, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":53,
"call":"GraphQL\\Utils\\Value::coerceValue(array(2), GraphQLType: ResponseProductInput, instance of GraphQL\\Language\\AST\\VariableDefinitionNode, null)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/Values.php",
"line":61,
"call":"GraphQL\\Utils\\Value::coerceValue(array(2), GraphQLType: ResponseProductInput, instance of GraphQL\\Language\\AST\\VariableDefinitionNode)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php",
"line":172,
"call":"GraphQL\\Executor\\Values::getVariableValues(instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\NodeList(10), array(8))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php",
"line":90,
"call":"GraphQL\\Executor\\ReferenceExecutor::buildExecutionContext(instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, array(2), instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php",
"line":152,
"call":"GraphQL\\Executor\\ReferenceExecutor::create(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php",
"line":165,
"call":"GraphQL\\Executor\\Executor::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php",
"line":98,
"call":"GraphQL\\GraphQL::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, '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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', null, instance of App\\Models\\User, array(8), null, null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQL.php",
"line":110,
"call":"GraphQL\\GraphQL::executeQuery(instance of GraphQL\\Type\\Schema, '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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', null, instance of App\\Models\\User, array(8), null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQL.php",
"line":95,
"call":"Rebing\\GraphQL\\GraphQL::queryAndReturnResult('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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', array(8), array(3))"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQLController.php",
"line":51,
"call":"Rebing\\GraphQL\\GraphQL::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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', array(8), array(3))"
},
{
"call":"Rebing\\GraphQL\\GraphQLController::query(instance of Illuminate\\Http\\Request, 'default')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php",
"line":54,
"function":"call_user_func_array(array(2), array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php",
"line":45,
"call":"Illuminate\\Routing\\Controller::callAction('query', array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
"line":212,
"call":"Illuminate\\Routing\\ControllerDispatcher::dispatch(instance of Illuminate\\Routing\\Route, instance of Rebing\\GraphQL\\GraphQLController, 'query')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
"line":169,
"call":"Illuminate\\Routing\\Route::runController()"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":658,
"call":"Illuminate\\Routing\\Route::run()"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":30,
"call":"Illuminate\\Routing\\Router::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/app\/Http\/Middleware\/GraphQLLogger.php",
"line":23,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"App\\Http\\Middleware\\GraphQLLogger::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/tymon\/jwt-auth\/src\/Middleware\/GetUserFromToken.php",
"line":46,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Tymon\\JWTAuth\\Middleware\\GetUserFromToken::handle(instance of Illuminate\\Http\\Request, instance of Closure, 'api')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":102,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":660,
"call":"Illuminate\\Pipeline\\Pipeline::then(instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":635,
"call":"Illuminate\\Routing\\Router::runRouteWithinStack(instance of Illuminate\\Routing\\Route, instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":601,
"call":"Illuminate\\Routing\\Router::runRoute(instance of Illuminate\\Http\\Request, instance of Illuminate\\Routing\\Route)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":590,
"call":"Illuminate\\Routing\\Router::dispatchToRoute(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":176,
"call":"Illuminate\\Routing\\Router::dispatch(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":30,
"call":"Illuminate\\Foundation\\Http\\Kernel::Illuminate\\Foundation\\Http\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
"line":30,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
"line":30,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php",
"line":27,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/CheckForMaintenanceMode.php",
"line":46,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/app\/Http\/Middleware\/AcceptJson.php",
"line":15,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"App\\Http\\Middleware\\AcceptJson::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":102,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":151,
"call":"Illuminate\\Pipeline\\Pipeline::then(instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":116,
"call":"Illuminate\\Foundation\\Http\\Kernel::sendRequestThroughRouter(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/public\/index.php",
"line":54,
"call":"Illuminate\\Foundation\\Http\\Kernel::handle(instance of Illuminate\\Http\\Request)"
}
]
},
{
"message":"Variable \"$products\" got invalid value [{\"ean\":\"7891058169015\",\"invoice_ean\":\"7891058169015\",\"response_amount\":\"6\",\"unit_discount_percentage\":\"8\",\"unit_discount_value\":\"5.6616\",\"unit_net_value\":\"65.1084\",\"monitored\":\"0\",\"industry_consideration\":\"000\"},{\"ean\":\"7891058006716\",\"invoice_ean\":\"7891058006716\",\"response_amount\":\"0\",\"unit_discount_percentage\":\"8\",\"unit_discount_value\":\"3.2288\",\"unit_net_value\":\"37.1312\",\"monitored\":\"0\",\"industry_consideration\":\"201\"}]; Expected type Boolean at value[1].monitored; Cannot represent value as boolean: 0",
"extensions":{
"category":"graphql"
},
"locations":[
{
"line":1,
"column":239
}
],
"trace":[
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":74,
"call":"GraphQL\\Utils\\Value::coercionError('Expected type Boolean', instance of GraphQL\\Language\\AST\\VariableDefinitionNode, array(2), 'Cannot represent value as boolean: 0', instance of GraphQL\\Error\\Error)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":53,
"call":"GraphQL\\Utils\\Value::coerceValue('0', GraphQLType: Boolean, instance of GraphQL\\Language\\AST\\VariableDefinitionNode, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":170,
"call":"GraphQL\\Utils\\Value::coerceValue('0', GraphQLType: Boolean, instance of GraphQL\\Language\\AST\\VariableDefinitionNode, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":132,
"call":"GraphQL\\Utils\\Value::coerceValue(array(8), GraphQLType: ResponseProductInput, instance of GraphQL\\Language\\AST\\VariableDefinitionNode, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Utils\/Value.php",
"line":53,
"call":"GraphQL\\Utils\\Value::coerceValue(array(2), GraphQLType: ResponseProductInput, instance of GraphQL\\Language\\AST\\VariableDefinitionNode, null)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/Values.php",
"line":61,
"call":"GraphQL\\Utils\\Value::coerceValue(array(2), GraphQLType: ResponseProductInput, instance of GraphQL\\Language\\AST\\VariableDefinitionNode)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php",
"line":172,
"call":"GraphQL\\Executor\\Values::getVariableValues(instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\NodeList(10), array(8))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/ReferenceExecutor.php",
"line":90,
"call":"GraphQL\\Executor\\ReferenceExecutor::buildExecutionContext(instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, array(2), instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php",
"line":152,
"call":"GraphQL\\Executor\\ReferenceExecutor::create(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php",
"line":165,
"call":"GraphQL\\Executor\\Executor::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of App\\Models\\User, array(8), null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php",
"line":98,
"call":"GraphQL\\GraphQL::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, '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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', null, instance of App\\Models\\User, array(8), null, null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQL.php",
"line":110,
"call":"GraphQL\\GraphQL::executeQuery(instance of GraphQL\\Type\\Schema, '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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', null, instance of App\\Models\\User, array(8), null, null)"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQL.php",
"line":95,
"call":"Rebing\\GraphQL\\GraphQL::queryAndReturnResult('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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', array(8), array(3))"
},
{
"file":"\/var\/www\/html\/vendor\/rebing\/graphql-laravel\/src\/Rebing\/GraphQL\/GraphQLController.php",
"line":51,
"call":"Rebing\\GraphQL\\GraphQL::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]!) {\n 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) {\n id\n outcome\n content\n imported_at\n }\n}', array(8), array(3))"
},
{
"call":"Rebing\\GraphQL\\GraphQLController::query(instance of Illuminate\\Http\\Request, 'default')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php",
"line":54,
"function":"call_user_func_array(array(2), array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php",
"line":45,
"call":"Illuminate\\Routing\\Controller::callAction('query', array(2))"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
"line":212,
"call":"Illuminate\\Routing\\ControllerDispatcher::dispatch(instance of Illuminate\\Routing\\Route, instance of Rebing\\GraphQL\\GraphQLController, 'query')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php",
"line":169,
"call":"Illuminate\\Routing\\Route::runController()"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":658,
"call":"Illuminate\\Routing\\Route::run()"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":30,
"call":"Illuminate\\Routing\\Router::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/app\/Http\/Middleware\/GraphQLLogger.php",
"line":23,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"App\\Http\\Middleware\\GraphQLLogger::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/tymon\/jwt-auth\/src\/Middleware\/GetUserFromToken.php",
"line":46,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Tymon\\JWTAuth\\Middleware\\GetUserFromToken::handle(instance of Illuminate\\Http\\Request, instance of Closure, 'api')"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":102,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":660,
"call":"Illuminate\\Pipeline\\Pipeline::then(instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":635,
"call":"Illuminate\\Routing\\Router::runRouteWithinStack(instance of Illuminate\\Routing\\Route, instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":601,
"call":"Illuminate\\Routing\\Router::runRoute(instance of Illuminate\\Http\\Request, instance of Illuminate\\Routing\\Route)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php",
"line":590,
"call":"Illuminate\\Routing\\Router::dispatchToRoute(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":176,
"call":"Illuminate\\Routing\\Router::dispatch(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":30,
"call":"Illuminate\\Foundation\\Http\\Kernel::Illuminate\\Foundation\\Http\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
"line":30,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php",
"line":30,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php",
"line":27,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/CheckForMaintenanceMode.php",
"line":46,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/app\/Http\/Middleware\/AcceptJson.php",
"line":15,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":149,
"call":"App\\Http\\Middleware\\AcceptJson::handle(instance of Illuminate\\Http\\Request, instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php",
"line":53,
"call":"Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php",
"line":102,
"call":"Illuminate\\Routing\\Pipeline::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":151,
"call":"Illuminate\\Pipeline\\Pipeline::then(instance of Closure)"
},
{
"file":"\/var\/www\/html\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php",
"line":116,
"call":"Illuminate\\Foundation\\Http\\Kernel::sendRequestThroughRouter(instance of Illuminate\\Http\\Request)"
},
{
"file":"\/var\/www\/html\/public\/index.php",
"line":54,
"call":"Illuminate\\Foundation\\Http\\Kernel::handle(instance of Illuminate\\Http\\Request)"
}
]
}
]
}
[EDIT]
All the boolean types gives me the same error.
But if I set the value in the Query (as the image below), the request is successfully sended.
This is pretty strange. Could be some kind of serialization where booleans are optimized to 0 or 1 in order to reduce size.
Thanks for your issue and we will fix this bug for v2.0.0
Interestingly, this is still the only search result that pops up for "Cannot represent value as boolean."
The error seems to be caused by the variables being URL-encoded instead of JSON-encoded.
Make sure to POST your variables with Content-Type: application/json
for the best server-client compatibility.
I'm trying to send this mutation:
The attribute is_free_good_discount is a Boolean type with false value.
But when I send this request, the response is always:
If I inspect the request with Fiddler, _is_free_gooddiscount value is "false"