Log in
Model

GetPaginatedCartItems

Magento\QuoteGraphQl\Model\CartItem\GetPaginatedCartItems

What it does

This class retrieves paginated cart items for GraphQL queries in Magento 2.

Developers use it when implementing cart queries that need to display items with pagination, sorting, and filtering capabilities.

It returns both the total count of non-deleted items and the paginated item collection based on specified page size, current page, and sort order.

Public Methods

  • execute()