Can not use where filter on images
stijns96 opened this issue · comments
Stijn Slats commented
Since the image objects automatically outputs the handle by default, it's impossible to use the where filter on it.
{%- assign image = product.images | where: 'id', 123 -%}
This will result in storing the handle as a string in my assign, instead of storing it as an object.
I actually want to have the image object as an object by default and not as handle. Or we could do something like image.object
for example.