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 5aea62c commit 8683e0bCopy full SHA for 8683e0b
lib/internal/Magento/Framework/GraphQl/Query/Fields.php
@@ -28,10 +28,11 @@ class Fields
28
*
29
* @return void
30
*/
31
+ // phpcs:ignore Generic.CodeAnalysis.EmptyStatement
32
public function setQuery($query, array $variables = null)
33
{
34
$queryFields = [];
- // phpcs:ignore Generic.CodeAnalysis.EmptyStatement
35
+
36
try {
37
$queryAst = \GraphQL\Language\Parser::parse(new \GraphQL\Language\Source($query ?: '', 'GraphQL'));
38
\GraphQL\Language\Visitor::visit(
@@ -76,7 +77,6 @@ public function getFieldsUsedInQuery()
76
77
* @param array $variables
78
79
* @return string[]
- *
80
81
private function extractVariables(array $variables): array
82
0 commit comments