File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
lib/internal/Magento/Framework/GraphQlSchemaStitching/GraphQlReader/MetaReader Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,11 @@ public function read(\GraphQL\Type\Definition\FieldDefinition $fieldMeta) : arra
99
99
$ result ['arguments ' ][$ argumentName ]['defaultValue ' ] = $ argumentMeta ->defaultValue ;
100
100
}
101
101
$ typeMeta = $ argumentMeta ->getType ();
102
- foreach ($ result ['arguments ' ][$ argumentName ] as $ argument ) {
103
- $ argument = $ this ->typeMetaReader ->read ($ typeMeta , TypeMetaWrapperReader::ARGUMENT_PARAMETER );
104
- return $ argument ;
105
- }
106
- // $result['arguments'][$argumentName] = array_merge_recursive(
107
- // $result['arguments'][$argumentName],
108
- // $this->typeMetaReader->read($typeMeta, TypeMetaWrapperReader::ARGUMENT_PARAMETER)
109
- // );
102
+
103
+ $ result ['arguments ' ][$ argumentName ] = array_merge_recursive (
104
+ $ result ['arguments ' ][$ argumentName ],
105
+ $ this ->typeMetaReader ->read ($ typeMeta , TypeMetaWrapperReader::ARGUMENT_PARAMETER )
106
+ );
110
107
111
108
if ($ this ->docReader ->read ($ argumentMeta ->astNode ->directives )) {
112
109
$ result ['arguments ' ][$ argumentName ]['description ' ] =
You can’t perform that action at this time.
0 commit comments