Log in
Model

Order

Magento\SalesGraphQl\Model\Formatter\Order

What it does

This class transforms Magento order objects into a standardized array format suitable for GraphQL API responses.

Developers use this formatter when building GraphQL endpoints that need to return order data, as it handles converting order information including addresses, payments, coupons, and customer-visible comments into the expected GraphQL schema structure.

Public Methods

  • format()
  • getOrderComments()