Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 77955af

Browse files
authored
Merge pull request #6819 from chandru-199/response-for-graphql-query
Added response for graphql query
2 parents 6abf7f0 + de25db2 commit 77955af

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

src/guides/v2.3/graphql/product/customizable-option-interface.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ Attribute | Type | Description
205205

206206
The following query returns information about the customizable options configured for the product with a `sku` of `xyz`.
207207

208-
```text
208+
**Request:**
209+
210+
```graphql
209211
{
210212
products(filter: {sku: {eq: "xyz"}}) {
211213
items {
@@ -225,3 +227,30 @@ The following query returns information about the customizable options configure
225227
}
226228
}
227229
```
230+
231+
**Response:**
232+
233+
```json
234+
{
235+
"data": {
236+
"products": {
237+
"items": [
238+
{
239+
"id": 1,
240+
"name": "T-shirt",
241+
"sku": "xyz",
242+
"__typename": "SimpleProduct",
243+
"options": [
244+
{
245+
"title": "Image",
246+
"required": false,
247+
"sort_order": 1,
248+
"option_id": 1
249+
}
250+
]
251+
}
252+
]
253+
}
254+
}
255+
}
256+
```

0 commit comments

Comments
 (0)