JS Buy SDK: Updated Storefront Schema

Shopify Staff
Shopify Staff
469 36 92

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.

Developer Experience @ Shopify
0 Likes