Skip to content

Commit 7acbb9a

Browse files
author
Valeriy Nayda
committed
MAGETWO-95215: [GraphQL] Performance issue in filters realization
1 parent b666bbb commit 7acbb9a

File tree

1 file changed

+2
-1
lines changed
  • lib/internal/Magento/Framework/GraphQl/Query

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/GraphQl/Query/Fields.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Fields
2121
private $fieldsUsedInQuery = [];
2222

2323
/**
24-
* Prints AST to string. Capable of printing GraphQL queries and Type definition language.
24+
* Set Query for extracting list of fields.
2525
*
2626
* @param string $query
2727
* @return void
@@ -42,6 +42,7 @@ public function setQuery($query)
4242
]
4343
);
4444
} catch (\Exception $e) {
45+
// If a syntax error is encountered do not collect fields
4546
}
4647
if (isset($queryFields['IntrospectionQuery'])) {
4748
// It must be possible to query any fields during introspection query

0 commit comments

Comments
 (0)