Working with an Array Item
Essential knowledgeCore knowledge to understand Fluent Commerce
Changed on:
23 Sept 2024
Overview
There are also some useful features for working with arrays. Typically you can access an array item by its index as follows:`node.attributes.0.value`This works on edges too: `node.aticles.edges.0.node.ref`Now, you can retrieve Attributes by Name: `node.attributes.byName.Size`In our example, the Article associated to the Storage Area contains an attribute named "FulfilmentType". See how we can show this in the Articles list below.Note: This video does not have audio.