We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eaa67d commit 09f5d65Copy full SHA for 09f5d65
app/code/Magento/GraphQl/Controller/HttpRequestValidator/HttpVerbValidator.php
@@ -37,9 +37,11 @@ public function validate(HttpRequestInterface $request): void
37
$query = $request->getParam('query', '');
38
if (!empty($query)) {
39
$operationType = '';
40
- $queryAst = Parser::parse(new Source($query ?: '', 'GraphQL'));
+ if (is_string($query)) {
41
+ $query = Parser::parse(new Source($query, 'GraphQL'));
42
+ }
43
Visitor::visit(
- $queryAst,
44
+ $query,
45
[
46
'leave' => [
47
NodeKind::OPERATION_DEFINITION => function (Node $node) use (&$operationType) {
0 commit comments