Magento 2 Certification Questions List | How to add attribute to collection

You have an instance of the ProductCollection. What method do you call to load a subset of attributes for each product?

Answer:
  • $productCollection->addAttributeToSelect('attribute_name')
Prepear for Magento 2 certefication with our interactive quiz