replaceCheckoutItemsMutation top-level constant

String const replaceCheckoutItemsMutation

Mutation to replace the line items of a checkout

Implementation

const String replaceCheckoutItemsMutation = r'''
mutation replaceCheckoutItems($checkoutId:ID!, $checkoutLineItems: [CheckoutLineItemInput!]! ) {
  checkoutLineItemsReplace(checkoutId: $checkoutId, lineItems: $checkoutLineItems) {
    checkout {
      lineItems(first: 10) {
        edges {
          node {
            id
            quantity
            title
          }
        }
      }
    }
    userErrors {
      code
      field
      message
    }
  }
}
''';