Search Products by Attributes
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.
In order to perform these operations, ensure that you have the proper authentication (if necessary) and user permissions.
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.
Fetching snippet...
The example query above gets all items that have the attributes mentioned in the query.