Log in
Model

NewFromTo

Magento\CatalogGraphQl\Model\Resolver\Product\NewFromTo

What it does

This GraphQL resolver handles the transition from legacy product attribute names (news_from_date, news_to_date) to new field names (new_from_date, new_to_date) in GraphQL responses.

It retrieves the 'new from' and 'new to' dates that mark when a product should be displayed as 'new' in the catalog, ensuring backward compatibility while the field names are being updated.

Public Methods

  • resolve()