Skip to content

Commit

Permalink
Merge pull request #28 from AzizKHAN030/m244_persisted-query
Browse files Browse the repository at this point in the history
Debug class was renamed to DebugFlag
  • Loading branch information
carinadues authored Jun 10, 2022
2 parents 0ca0684 + 437d687 commit 3f1e8f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Query/QueryProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace ScandiPWA\PersistedQuery\Query;

use GraphQL\Error\Debug;
use GraphQL\Error\DebugFlag;
use GraphQL\GraphQL;
use GraphQL\Validator\DocumentValidator;
use GraphQL\Validator\Rules\QueryComplexity;
Expand Down Expand Up @@ -103,7 +103,7 @@ public function process(
[$this->errorHandler, 'handle']
)->toArray(
$this->exceptionFormatter->shouldShowDetail() ?
Debug::INCLUDE_DEBUG_MESSAGE : false
DebugFlag::INCLUDE_DEBUG_MESSAGE : 0
);

$this->response->setHeader('Query-Complexity', $queryComplexity->getQueryComplexity(), true);
Expand Down

0 comments on commit 3f1e8f0

Please sign in to comment.