JS Buy SDK: Updated Storefront Schema

Ryan
Shopify Staff
492 42 113

The JS Buy SDK is being updated to match the new Storefront API Schema.

Key Changes:

  • Remove unused fixtures
  • Fetch collections, products, collectionByHandle and productByHandle from the QueryRoot instead of from the Shop object.
  • Return checkoutUserErrors instead of userErrors when present. This will add an extra field called code.
  • Expose checkoutLineItemsReplace mutation (to replace deprecated checkoutLineItemsAdd , checkoutLineItemsRemove , and checkoutLineItemsUpdate mutations).

Full details here.

Ryan | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Replies 0 (0)