You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/reference/products.md
+32-4Lines changed: 32 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ Attribute | Description
26
26
`currentPage` | Specifies which page of results to return. The default value is 1. See [Searches and pagination in GraphQL]({{ page.baseurl }}/graphql/search-pagination.html) for more information.
27
27
`sort` | Specifies which attribute to sort on, and whether to return the results in ascending or descending order. See [Searches and pagination in GraphQL]({{ page.baseurl }}/graphql/search-pagination.html) for more information.
28
28
`Products` | An output object that contains the results of the query. See [Response](#Response) for details.
The following attributes are not used in responses:
90
+
90
91
*`or` - The keyword required to perform a logical OR comparison.
91
92
*`news_from_date` - This attribute is transformed to `news_from_date` in a response.
92
93
*`news_to_date` - This attribute is transformed to `news_to_date` in a response.
93
-
*
94
-
</div>
94
+
95
+
{%
96
+
include note.html
97
+
type="info"
98
+
content="GraphQL automatically filters out a product attribute if ALL of the following fields are set to **No** on the attribute's Storefront Properties page in Admin:
99
+
100
+
* Comparable on Storefront
101
+
* Use in Layered Navigation
102
+
* Use in Search Results Layered Navigation
103
+
* Visible on Catalog Pages on Storefront
104
+
* Used in Product Listing
105
+
* Used for Sorting in Product Listing"
106
+
107
+
%}
95
108
96
109
## Response {#Response}
97
110
@@ -114,7 +127,7 @@ Attribute | Description
114
127
`total_count` | The number of products returned
115
128
`filters` | An array of layered navigation filters. These filters can be used to implement layered navigation on your app.
116
129
`sort_fields` | An object that includes the default sort field and all available sort fields
117
-
130
+
{:style="table-layout:auto;"}
118
131
119
132
When a product requires a filter attribute that is not a field on its output schema, inject the attribute name into the class in a module's `di.xml` file.
120
133
@@ -191,6 +204,7 @@ Attribute | Data type | Description
191
204
`type_id` | String | One of `simple`, `virtual`, `bundle`, `downloadable`,`grouped`, `configurable`
192
205
`updated_at` | String | The timestamp indicating when the product was last updated
193
206
`website_ids` | [Int] | An array of website IDs in which the product is available
207
+
{:style="table-layout:auto;"}
194
208
195
209
### ProductPrices object {#ProductPrices}
196
210
@@ -201,6 +215,7 @@ Attribute | Data Type | Description
201
215
`maximalPrice` | Price | Used for composite (bundle, configurable, grouped) products. This is the highest possible final price for all the options defined within a composite product. If you're specifying a price range, this would be the "to" value.
202
216
`minimalPrice` | Price | Used for composite (bundle, configurable, grouped) products. This is the lowest possible final price for all the options defined within a composite product. If you're specifying a price range, this would be the "from" value.
203
217
`regularPrice` | Price | The base price of a product.
218
+
{:style="table-layout:auto;"}
204
219
205
220
#### Price object {#Price}
206
221
@@ -210,6 +225,7 @@ Attribute | Data Type | Description
210
225
--- | --- | ---
211
226
`amount` | Money | The price of the product and its currency code. See [Money object](#Money).
212
227
`adjustments` | [PriceAdjustment] | An array of [PriceAdjustment](#PriceAdjustment) objects.
228
+
{:style="table-layout:auto;"}
213
229
214
230
##### Money object {#Money}
215
231
@@ -219,6 +235,7 @@ Attribute | Data Type | Description
219
235
--- | --- | ---
220
236
`value` | Float | The price of the product
221
237
`currency` | CurrencyEnum | A three-letter currency code, such as `USD` or `EUR`.
238
+
{:style="table-layout:auto;"}
222
239
223
240
##### PriceAdjustment array {#PriceAdjustment}
224
241
@@ -229,6 +246,7 @@ Attribute | Data Type | Description
229
246
`amount` | Money | The amount of the price adjustment and its currency code. See [Money object](#Money).
230
247
`code` | PriceAdjustmentCodesEnum | One of `tax`, `weee`, or `weee_tax`.
231
248
`description` | PriceAdjustmentDescriptionEnum | Indicates whether the entity described by the code attribute is included or excluded from the adjustment.
249
+
{:style="table-layout:auto;"}
232
250
233
251
#### ProductLinks object {#ProductLinks}
234
252
@@ -241,6 +259,7 @@ Attribute | Type | Description
241
259
`linked_product_sku` | String | The SKU of the linked product
242
260
`linked_product_type` | String | The type of linked product (`simple`, `virtual`, `bundle`, `downloadable`,`grouped`, `configurable`)
243
261
`position` | Int | The position within the list of product links
262
+
{:style="table-layout:auto;"}
244
263
245
264
### MediaGalleryEntry object {#MediaGalleryEntry}
246
265
@@ -257,6 +276,7 @@ Field | Type | Description
257
276
`file` | String | The path of the image on the server
258
277
`content` | ProductMediaGalleryEntriesContent | Contains a [ProductMediaGalleryEntriesContent](#ProductMediaGalleryEntriesContent) object
259
278
`video_content` | ProductMediaGalleryEntriesVideoContent | Contains a [ProductMediaGalleryEntriesVideoContent](#ProductMediaGalleryEntriesVideoContent) object
0 commit comments