Skip to content

Commit f583550

Browse files
committed
Disable schema integrity checks in prod mode
1 parent 2438587 commit f583550

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GraphQLController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ public function options() : Response
4444
#[Route(name: 'graphql', methods: ['GET', 'POST'])]
4545
public function graphql(Request $request) : Response
4646
{
47-
$errorHandling = $this->getParameter('kernel.debug') === true
47+
$debugMode = $this->getParameter('kernel.debug') === true;
48+
Graphpinator::$validateSchema = $debugMode;
49+
$errorHandling = $debugMode
4850
? ErrorHandlingMode::OUTPUTABLE
4951
: ErrorHandlingMode::ALL;
5052
$graphpinator = new Graphpinator($this->schema, $errorHandling, $this->getEnabledModules($request), $this->logger);

0 commit comments

Comments
 (0)