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

GraphQL: small changes #6052

Merged
merged 2 commits into from
Nov 21, 2019
Merged
Show file tree
Hide file tree
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
9 changes: 3 additions & 6 deletions guides/v2.3/graphql/mutations/add-configurable-products.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Attribute | Type | Description
--- | --- | ---
`customizable_options` | [CustomizableOptionInput](#customOptionInput) | An object that contains the ID and value of the product
`data` | [CartItemInput!](#cartItemInput) | An object that contains the quantity and SKU of the configurable product
`parent_sku` | String | The SKU of the simple product's parent configurable product
`parent_sku` | String | The SKU of the simple product's parent configurable product. If you do not specify this attribute, Magento treats the product being added to the cart as a simple product
`variant_sku` | String | Deprecated. Use `CartItemInput.sku` instead. The SKU of the simple product

### CustomizableOptionInput object {#customOptionInput}
Expand All @@ -114,12 +114,9 @@ Attribute | Type | Description

### CartItemInput object {#cartItemInput}

The `CartItemInput` object contains the following attributes:
The `CartItemInput` object must contain the following attributes:

Attribute | Type | Description
--- | --- | ---
`quantity` | Float! | The number of items to add to the cart
`sku` | String! | The SKU of the simple product
{% include graphql/cart-item-input.md %}

## Output attributes

Expand Down
2 changes: 1 addition & 1 deletion guides/v2.3/graphql/mutations/add-simple-products.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Attribute | Data Type | Description

The `CartItemInput` object must contain the following attributes:

{% include graphql/customizable-option-input.md %}
{% include graphql/cart-item-input.md %}

### CustomizableOptionInput object {#CustomizableOptionInputSimple}

Expand Down