Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
query_array_output.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
8 return [
9  'Query' =>
10  [
11  'name' => 'Query',
12  'fields' =>
13  [
14  'customAttributeMetadata' =>
15  [
16  'name' => 'customAttributeMetadata',
17  'type' => 'CustomAttributeMetadata',
18  'arguments' =>
19  [
20  'attributes' =>
21  [
22  'name' => 'attributes',
23  'type' => 'AttributeInput',
24  'description' => '',
25  'required' => true,
26  'isList' => true,
27  'itemsRequired' => true,
28  'defaultValue' => null
29  ],
30 
31  ],
32  'required' => false,
33  'isList' => false,
34  'resolver' => 'Magento\\EavGraphQl\\Model\\Resolver\\CustomAttributeMetadata',
35  'description' => 'Returns the attribute type, given an attribute code and entity type'
36  ],
37  'products' => [
38  'name' => 'products',
39  'type' => 'Products',
40  'arguments' =>
41  [
42  'search' =>
43  [
44  'name' => 'search',
45  'type' => 'String',
46  'description' => '',
47  'required' => false,
48  'isList' => false,
49  'itemsRequired' => false,
50  'defaultValue' => null
51  ],
52 
53  'filter' =>
54  [
55  'name' => 'filter',
56  'type' => 'ProductFilterInput',
57  'description' => '',
58  'required' => false,
59  'isList' => false,
60  'itemsRequired' => false,
61  'defaultValue' => null
62  ],
63 
64  'pageSize' =>
65  [
66  'name' => 'pageSize',
67  'type' => 'Int',
68  'description' => 'number of records to display',
69  'required' => false,
70  'isList' => false,
71  'itemsRequired' => false,
72  'defaultValue' => 10
73  ],
74 
75  'currentPage' =>
76  [
77  'name' => 'currentPage',
78  'type' => 'Int',
79  'description' => '',
80  'required' => false,
81  'isList' => false,
82  'itemsRequired' => false,
83  'defaultValue' => 1
84  ],
85  'sort' =>
86  [
87  'name' => 'sort',
88  'type' => 'ProductSortInput',
89  'description' => '',
90  'required' => false,
91  'isList' => false,
92  'itemsRequired' => false,
93  'defaultValue' => null
94  ]
95  ],
96  'required' => false,
97  'isList' => false,
98  'resolver' => 'Magento\\CatalogGraphQl\\Model\\Resolver\\Products',
99  'description' => 'comment for products fields'
100  ]
101  ]
102  ],
103  'PriceAdjustmentDescriptionEnum' =>
104  [
105  'name' => 'PriceAdjustmentDescriptionEnum',
106  'values' =>
107  [
108  'INCLUDED' =>
109  [
110  'name' => 'included',
111  'value' => 'INCLUDED',
112  'description' => 'price is included'
113  ],
114  'EXCLUDED' =>
115  [
116  'name' => 'excluded',
117  'value' => 'EXCLUDED',
118  'description' => 'price is excluded'
119  ]
120  ],
121  'description' => 'Description for enumType PriceAdjustmentDescriptionEnum'
122  ],
123  'ProductLinks' =>
124  [
125  'name' => 'ProductLinks',
126  'fields' =>
127  [
128  'sku' =>
129  [
130  'name' => 'sku',
131  'type' => 'String',
132 
133  'arguments' =>
134  [
135  ],
136  'required' => false,
137  'isList' => false,
138  'resolver' => '',
139  'description' => 'The identifier of the linked product',
140 
141  ],
142  'link_type' =>
143  [
144  'name' => 'link_type',
145  'type' => 'String',
146  'arguments' =>
147  [
148  ],
149  'required' => false,
150  'isList' => false,
151  'resolver' => '',
152  'description' => '',
153 
154  ],
155  'linked_product_sku' =>
156  [
157  'name' => 'linked_product_sku',
158  'type' => 'String',
159  'arguments' =>
160  [
161  ],
162  'required' => false,
163  'isList' => false,
164  'resolver' => '',
165  'description' => 'The SKU of the linked product',
166 
167  ],
168  'linked_product_type' =>
169  [
170  'name' => 'linked_product_type',
171  'type' => 'String',
172  'arguments' =>
173  [
174  ],
175  'required' => false,
176  'isList' => false,
177  'resolver' => '',
178  'description' => '',
179 
180  ],
181  'position' =>
182  [
183  'name' => 'position',
184  'type' => 'Int',
185  'arguments' =>
186  [
187  ],
188  'required' => false,
189  'isList' => false,
190  'resolver' => '',
191  'description' => 'The position within the list of product links',
192 
193  ]
194  ],
195  'interfaces' =>
196  [
197  'ProductLinksInterface' =>
198  [
199  'interface' => 'ProductLinksInterface',
200  'copyFields' => true,
201  ],
202  ],
203  'description' => 'ProductLinks is an implementation of ProductLinksInterface.'
204  ],
205  'ProductLinksInterface' =>
206  [
207  'name' => 'ProductLinksInterface',
208  'fields' =>
209  [
210  'sku' =>
211  [
212  'name' => 'sku',
213  'type' => 'String',
214 
215  'arguments' =>
216  [
217  ],
218  'required' => false,
219  'isList' => false,
220  'resolver' => '',
221  'description' => 'The identifier of the linked product',
222 
223  ],
224  'link_type' =>
225  [
226  'name' => 'link_type',
227  'type' => 'String',
228  'arguments' =>
229  [
230  ],
231  'required' => false,
232  'isList' => false,
233  'resolver' => '',
234  'description' => '',
235 
236  ],
237  'linked_product_sku' =>
238  [
239  'name' => 'linked_product_sku',
240  'type' => 'String',
241  'arguments' =>
242  [
243  ],
244  'required' => false,
245  'isList' => false,
246  'resolver' => '',
247  'description' => 'The SKU of the linked product',
248 
249  ],
250  'linked_product_type' =>
251  [
252  'name' => 'linked_product_type',
253  'type' => 'String',
254  'arguments' =>
255  [
256  ],
257  'required' => false,
258  'isList' => false,
259  'resolver' => '',
260  'description' => '',
261 
262  ],
263  'position' =>
264  [
265  'name' => 'position',
266  'type' => 'Int',
267  'arguments' =>
268  [
269  ],
270  'required' => false,
271  'isList' => false,
272  'resolver' => '',
273  'description' => 'The position within the list of product links',
274 
275  ]
276  ],
277  'typeResolver' => 'Magento\\CatalogGraphQl\\Model\\ProductLinkTypeResolverComposite',
278  'description' => 'description for ProductLinksInterface'
279  ]
280 ];