All Release Notes
ShoppingLists GraphQL mutations
19 November 2019
Enhancement
CartsGraphQL
- [GraphQL API] Added the following types to the GraphQL schema:
AddShoppingListLineItem,AddShoppingListTextLineItem,ChangeShoppingListLineItemQuantity,ChangeShoppingListLineItemsOrder,ChangeShoppingListName,ChangeShoppingListTextLineItemName,ChangeShoppingListTextLineItemQuantity,ChangeShoppingListTextLineItemsOrder,MyShoppingListDraft,MyShoppingListUpdateAction,RemoveShoppingListLineItem,RemoveShoppingListTextLineItem,SetShoppingListAnonymousId,SetShoppingListCustomField,SetShoppingListCustomType,SetShoppingListCustomer,SetShoppingListDeleteDaysAfterLastModification,SetShoppingListDescription,SetShoppingListKey,SetShoppingListLineItemCustomField,SetShoppingListLineItemCustomType,SetShoppingListSlug,SetShoppingListTextLineItemCustomField,SetShoppingListTextLineItemCustomType,SetShoppingListTextLineItemDescription,ShoppingListDraft,ShoppingListLineItemDraft,ShoppingListUpdateAction,TextLineItemDraft. - [GraphQL API] Changed the
Mutationtype:- Added the
updateMyShoppingListfield to theMutationtype. - Added the
createShoppingListfield to theMutationtype. - Added the
deleteShoppingListfield to theMutationtype. - Added the
createMyShoppingListfield to theMutationtype. - Added the
updateShoppingListfield to theMutationtype. - Added the
deleteMyShoppingListfield to theMutationtype.
- Added the
Introduced the following changes to the GraphQL schema (in SDL format):
extend type Mutation {createMyShoppingList(draft: MyShoppingListDraft!): ShoppingListcreateShoppingList(draft: ShoppingListDraft!): ShoppingListdeleteMyShoppingList(id: String!, version: Long!): ShoppingListdeleteShoppingList(version: Long!, personalDataErasure: Boolean = false,"Queries with specified ID"id: String,"Queries with specified key"key: String): ShoppingListupdateMyShoppingList(id: String!, version: Long!, actions: [MyShoppingListUpdateAction!]!): ShoppingListupdateShoppingList(version: Long!, actions: [ShoppingListUpdateAction!]!,"Queries with specified ID"id: String,"Queries with specified key"key: String): ShoppingList}input AddShoppingListLineItem {addedAt: DateTimecustom: CustomFieldsDraftquantity: Int = 1variantId: Intsku: StringproductId: String}input AddShoppingListTextLineItem {addedAt: DateTimecustom: CustomFieldsDraftquantity: Int = 1description: [LocalizedStringItemInputType!]name: [LocalizedStringItemInputType!]!}input ChangeShoppingListLineItemQuantity {lineItemId: String!quantity: Int!}input ChangeShoppingListLineItemsOrder {lineItemOrder: [String!]!}input ChangeShoppingListName {name: [LocalizedStringItemInputType!]!}input ChangeShoppingListTextLineItemName {textLineItemId: String!name: [LocalizedStringItemInputType!]!}input ChangeShoppingListTextLineItemQuantity {textLineItemId: String!quantity: Int!}input ChangeShoppingListTextLineItemsOrder {textLineItemOrder: [String!]!}input MyShoppingListDraft {name: [LocalizedStringItemInputType!]!description: [LocalizedStringItemInputType!]lineItems: [ShoppingListLineItemDraft!] = []textLineItems: [TextLineItemDraft!] = []custom: CustomFieldsDraftdeleteDaysAfterLastModification: Int}input MyShoppingListUpdateAction {addLineItem: AddShoppingListLineItemaddTextLineItem: AddShoppingListTextLineItemchangeLineItemQuantity: ChangeShoppingListLineItemQuantitychangeLineItemsOrder: ChangeShoppingListLineItemsOrderchangeName: ChangeShoppingListNamechangeTextLineItemName: ChangeShoppingListTextLineItemNamechangeTextLineItemQuantity: ChangeShoppingListTextLineItemQuantitychangeTextLineItemsOrder: ChangeShoppingListTextLineItemsOrderremoveLineItem: RemoveShoppingListLineItemremoveTextLineItem: RemoveShoppingListTextLineItemsetCustomField: SetShoppingListCustomFieldsetCustomType: SetShoppingListCustomTypesetDeleteDaysAfterLastModification: SetShoppingListDeleteDaysAfterLastModificationsetDescription: SetShoppingListDescriptionsetLineItemCustomField: SetShoppingListLineItemCustomFieldsetLineItemCustomType: SetShoppingListLineItemCustomTypesetTextLineItemCustomField: SetShoppingListTextLineItemCustomFieldsetTextLineItemCustomType: SetShoppingListTextLineItemCustomTypesetTextLineItemDescription: SetShoppingListTextLineItemDescription}input RemoveShoppingListLineItem {lineItemId: String!quantity: Int}input RemoveShoppingListTextLineItem {textLineItemId: String!quantity: Int}input SetShoppingListAnonymousId {anonymousId: String}input SetShoppingListCustomField {name: String!value: String}input SetShoppingListCustomType {fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: String}input SetShoppingListCustomer {customer: ResourceIdentifierInput}input SetShoppingListDeleteDaysAfterLastModification {deleteDaysAfterLastModification: Int}input SetShoppingListDescription {description: [LocalizedStringItemInputType!]}input SetShoppingListKey {key: String}input SetShoppingListLineItemCustomField {lineItemId: String!name: String!value: String}input SetShoppingListLineItemCustomType {lineItemId: String!fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: String}input SetShoppingListSlug {slug: [LocalizedStringItemInputType!]}input SetShoppingListTextLineItemCustomField {textLineItemId: String!name: String!value: String}input SetShoppingListTextLineItemCustomType {textLineItemId: String!fields: [CustomFieldInput!]type: ResourceIdentifierInputtypeKey: StringtypeId: String}input SetShoppingListTextLineItemDescription {textLineItemId: String!description: [LocalizedStringItemInputType!]}input ShoppingListDraft {name: [LocalizedStringItemInputType!]!description: [LocalizedStringItemInputType!]lineItems: [ShoppingListLineItemDraft!] = []textLineItems: [TextLineItemDraft!] = []custom: CustomFieldsDraftdeleteDaysAfterLastModification: Intkey: Stringcustomer: ResourceIdentifierInputslug: [LocalizedStringItemInputType!]anonymousId: String}input ShoppingListLineItemDraft {productId: Stringsku: StringvariantId: Intquantity: Int = 1custom: CustomFieldsDraftaddedAt: DateTime}input ShoppingListUpdateAction {addLineItem: AddShoppingListLineItemaddTextLineItem: AddShoppingListTextLineItemchangeLineItemQuantity: ChangeShoppingListLineItemQuantitychangeLineItemsOrder: ChangeShoppingListLineItemsOrderchangeName: ChangeShoppingListNamechangeTextLineItemName: ChangeShoppingListTextLineItemNamechangeTextLineItemQuantity: ChangeShoppingListTextLineItemQuantitychangeTextLineItemsOrder: ChangeShoppingListTextLineItemsOrderremoveLineItem: RemoveShoppingListLineItemremoveTextLineItem: RemoveShoppingListTextLineItemsetAnonymousId: SetShoppingListAnonymousIdsetCustomField: SetShoppingListCustomFieldsetCustomType: SetShoppingListCustomTypesetCustomer: SetShoppingListCustomersetDeleteDaysAfterLastModification: SetShoppingListDeleteDaysAfterLastModificationsetDescription: SetShoppingListDescriptionsetKey: SetShoppingListKeysetLineItemCustomField: SetShoppingListLineItemCustomFieldsetLineItemCustomType: SetShoppingListLineItemCustomTypesetSlug: SetShoppingListSlugsetTextLineItemCustomField: SetShoppingListTextLineItemCustomFieldsetTextLineItemCustomType: SetShoppingListTextLineItemCustomTypesetTextLineItemDescription: SetShoppingListTextLineItemDescription}input TextLineItemDraft {name: [LocalizedStringItemInputType!]!description: [LocalizedStringItemInputType!]quantity: Int = 1custom: CustomFieldsDraftaddedAt: DateTime}