diff --git a/src/Controller.php b/src/Controller.php index 360423636..ce69a21fc 100644 --- a/src/Controller.php +++ b/src/Controller.php @@ -42,7 +42,7 @@ public function index(HTTPRequest $request) $rawBody = $request->getBody(); $data = json_decode($rawBody ?: '', true); $query = isset($data['query']) ? $data['query'] : null; - $variables = isset($data['variables']) ? $data['variables'] : null; + $variables = isset($data['variables']) ? json_decode($data['variables']) : null; } else { $query = $request->requestVar('query'); $variables = json_decode($request->requestVar('variables'), true);