flattenConnection

The flattenConnection utility transforms a connection object from the Storefront API (for example, Product-related connections) into a flat array of nodes.