In Crystallize, you can define any number of variants for a product. These variants can differ in terms of attributes such as color, material, etc. Using the Search API, you can fetch products depending on the attributes.
Fetch Items using Attributes
To fetch items depending on attributes, you can use the attributes field provided in productVariants. It takes an array of objects, which contains the attribute name and its value.
The example query above gets all items that have the attributes mentioned in the query.
Need further assistance?
Ask the Crystallize team or other enthusiasts in our slack community.