From 3b9e0995e80f6b7e48ff55af8b5df5ce73de425c Mon Sep 17 00:00:00 2001 From: redboer Date: Wed, 31 Mar 2021 18:54:50 +0200 Subject: [PATCH] Update GraphQLService.php This fixes issue #342 --- src/Services/GraphQLService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/GraphQLService.php b/src/Services/GraphQLService.php index f603cf1..ae8af61 100644 --- a/src/Services/GraphQLService.php +++ b/src/Services/GraphQLService.php @@ -128,7 +128,7 @@ function getSchema($token) { } function execute($schema, $input, $variables = []) { - $debug = Craft::$app->config->getGeneral()->devMode ? DebugFlag::INCLUDE_DEBUG_MESSAGE | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS : null; + $debug = Craft::$app->config->getGeneral()->devMode ? DebugFlag::INCLUDE_DEBUG_MESSAGE | DebugFlag::RETHROW_INTERNAL_EXCEPTIONS : 0; return GraphQL::executeQuery($schema, $input, null, null, $variables)->toArray($debug); }