Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f31ff46

Browse files
committed
add the option_id parameter for customizable options
1 parent 6a90125 commit f31ff46

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

guides/v2.3/graphql/reference/customizable-option-interface.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Field | Type | Description
2424
`title` | String | The display name for this option
2525
`required` | Boolean | Indicates whether the option is required
2626
`sort_order` | Int | The order in which the option is displayed
27+
`option_id` | Int | The ID assigned to the option
2728

2829
## CustomizableAreaOption object
2930

@@ -149,3 +150,25 @@ Field | Type | Description
149150
`sort_order` | Int | The order in which the option is displayed
150151

151152
## Example usage
153+
154+
The following query returns information about the customizable options configured for the product with a `sku` of `xyz`.
155+
156+
```json
157+
products(filter: {sku: {eq: "xyz"}}) {
158+
items {
159+
id
160+
name
161+
sku
162+
type_id
163+
... on CustomizableProductInterface {
164+
options {
165+
title
166+
required
167+
sort_order
168+
option_id
169+
}
170+
}
171+
}
172+
}
173+
}
174+
```

0 commit comments

Comments
 (0)