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

Added response for graphql query #6819

Merged
merged 3 commits into from
Mar 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion src/guides/v2.3/graphql/product/customizable-option-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ Attribute | Type | Description

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

```text
**Request:**

```graphql
{
products(filter: {sku: {eq: "xyz"}}) {
items {
Expand All @@ -225,3 +227,30 @@ The following query returns information about the customizable options configure
}
}
```

**Response:**

```json
{
"data": {
"products": {
"items": [
{
"id": 1,
"name": "T-shirt",
"sku": "xyz",
"__typename": "SimpleProduct",
"options": [
{
"title": "Image",
"required": false,
"sort_order": 1,
"option_id": 1
}
]
}
]
}
}
}
```