GraphQL Storefront API Updates - May 5th
1588012620001
Storefront API
Enhancement
New Features
- You may now request the product description as plain text (with HTML tags stripped) using the new
plainTextDescriptionfield. To encourage not over-fetching, and to support cases where you want to show only a small preview of the summary, you may specify the desired number of characters using thecharacterLimitargument. - New
newestProducts,featuredProducts, andbestSellingProductsnodes have been added, which reflect the same products returned by the equivalent home page panels in Stencil. - A new
basePricefield has been added to theproductnode, which reflects the base price of a product before any sale pricing or other price modifications. This is similar to thenon_sale_pricein Stencil. It can be used (in comparison to thepriceorsalePriceto indicate when a product is on sale)
Bug fixes
- When the customer login mutation returns an error, the error is now correctly contained within the standard
errorsobject. Previously, this error would be returned as part of an incorrectly-namederror(singular) object.
Deprecations and removals
- The deprecated
product.priceRangesnode now returnsnull. It will be fully removed in a future release. Use the equivalentproduct.prices.priceRangeinstead.
