File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/internal/Magento/Framework/GraphQl/Query Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ public function setQuery($query, array $variables = null)
49
49
} catch (\Exception $ e ) {
50
50
// If a syntax error is encountered do not collect fields
51
51
}
52
- if (isset ($ queryFields ['IntrospectionQuery ' ])) {
52
+ if (isset ($ queryFields ['IntrospectionQuery ' ]) || (isset ($ queryFields ['__schema ' ])) ||
53
+ (isset ($ queryFields ['__type ' ]))) {
53
54
// It must be possible to query any fields during introspection query
54
55
$ queryFields = [];
55
56
}
@@ -60,7 +61,7 @@ public function setQuery($query, array $variables = null)
60
61
* Get list of fields used in GraphQL query.
61
62
*
62
63
* This method is stateful and relies on the query being set with setQuery.
63
- *
64
+ *-
64
65
* @return string[]
65
66
*/
66
67
public function getFieldsUsedInQuery ()
You can’t perform that action at this time.
0 commit comments