flattenConnection utility transforms a connection object from the Storefront API (for example, Product-related connections) into a flat array of nodes.
Example codeAnchor link to section titled "Example code"
|A connection object with the field
Return typeAnchor link to section titled "Return type"
A flat array whose elements correspond to the
node value in each element of the original