All Release Notes
Added field to Cart representing the total quantity of all Line Items
8 February 2022
Enhancement
CartsGraphQL
We added the totalLineItemQuantity field to Cart that represents the sum of all Line Item quantities. Its value does not take the Cart's Custom Line Items into consideration. With this, there is no need for you any more to calculate this value on the client side.
Changes:
- [API] Added
totalLineItemQuantityfield to Cart. - [GraphQL API] Changed the
Carttype:- Added the
totalLineItemQuantityfield to theCarttype.
- Added the
The following changes were introduced in terms of GraphQL SDL:
extend type Cart {totalLineItemQuantity: Long}