All Release Notes
Added 'key' to Cart Line Item
9 June 2023
Composable Commerce
HTTP API
Enhancement
CartsGraphQL
We introduced the key
field on LineItem and LineItemDraft. This ensures a consistent experience when working with external identifiers across different entity types in Composable Commerce.
Changes:
- [GraphQL API] Changed the
AddStagedOrderLineItem
type:- Input field
key
was added toAddStagedOrderLineItem
type
- Input field
- [GraphQL API] Changed the
MyLineItemDraft
type:- Input field
key
was added toMyLineItemDraft
type
- Input field
- [GraphQL API] Changed the
LineItemDraft
type:- Input field
key
was added toLineItemDraft
type
- Input field
- [GraphQL API] Changed the
AddCartLineItem
type:- Input field
key
was added toAddCartLineItem
type
- Input field
- [GraphQL API] Changed the
LineItem
type:- Added the
key
field to theLineItem
type.
- Added the
- [GraphQL API] Changed the
LineItemDraftOutput
type:- Added the
key
field to theLineItemDraftOutput
type.
- Added the
- [GraphQL API] Changed the
AddMyCartLineItem
type:- Input field
key
was added toAddMyCartLineItem
type
- Input field
The following changes were introduced in terms of GraphQL SDL:
extend type LineItemDraftOutput {key: String}extend type LineItem {key: String}extend input AddMyCartLineItem {key: String}extend input AddStagedOrderLineItem {key: String}extend input MyLineItemDraft {key: String}extend input LineItemDraft {key: String}extend input AddCartLineItem {key: String}