Search Products by Attributes
In Crystallize, you can define any number of variants for a product. This variant 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 in an array of object which contains the attribute name and its value.
The example query above gets all items that have the attributes mentioned in the query.