From 223aced8802e71dea7b13f161f7a58bcfd6d796d Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Fri, 1 Mar 2019 14:30:14 -0600 Subject: [PATCH 1/2] added option_id attribute and example --- .../customizable-option-interface.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/guides/v2.3/graphql/reference/customizable-option-interface.md b/guides/v2.3/graphql/reference/customizable-option-interface.md index ee497068901..19fbdb5ea95 100644 --- a/guides/v2.3/graphql/reference/customizable-option-interface.md +++ b/guides/v2.3/graphql/reference/customizable-option-interface.md @@ -21,6 +21,7 @@ Magento has not implemented all possible customizable product options for GraphQ Field | Type | Description --- | --- | --- +`option_id` | Int | The ID assigned to the option `required` | Boolean | Indicates whether the option is required `sort_order` | Int | The order in which the option is displayed `title` | String | The display name for this option @@ -147,3 +148,27 @@ Field | Type | Description `sku` | String | The Stock Keeping Unit for this option `sort_order` | Int | The order in which the option is displayed `title` | String | The display name for this option + +## Example usage + +The following query returns information about the customizable options configured for the product with a `sku` of `xyz`. + +```json + products(filter: {sku: {eq: "xyz"}}) { + items { + id + name + sku + type_id + ... on CustomizableProductInterface { + options { + title + required + sort_order + option_id + } + } + } + } +} +``` From f50f74659decac515f2f28391b3ffa7d583f77a4 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Fri, 1 Mar 2019 14:38:55 -0600 Subject: [PATCH 2/2] Corrected data type of code example --- guides/v2.3/graphql/reference/customizable-option-interface.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/v2.3/graphql/reference/customizable-option-interface.md b/guides/v2.3/graphql/reference/customizable-option-interface.md index 19fbdb5ea95..1e84b3cf4c8 100644 --- a/guides/v2.3/graphql/reference/customizable-option-interface.md +++ b/guides/v2.3/graphql/reference/customizable-option-interface.md @@ -153,7 +153,7 @@ Field | Type | Description The following query returns information about the customizable options configured for the product with a `sku` of `xyz`. -```json +```text products(filter: {sku: {eq: "xyz"}}) { items { id