Log in
Model

ExtractCustomerData

Magento\CustomerGraphQl\Model\Customer\ExtractCustomerData

What it does

This class transforms Magento customer data objects into array format suitable for GraphQL responses.

Developers use this when implementing GraphQL queries or mutations that need to return customer information, ensuring proper formatting of addresses, custom attributes, and extension attributes while removing deprecated or sensitive fields.

Public Methods

  • execute()