Confusion around swatch object on product_option_value

Short description of issue

I’m unsure where to populate the swatch object for use with product_option_value

Reproduction steps

There is a swatch property listed on the product_option_value object here: Liquid objects: product_option_value. I’m trying to figure out how to populate it.

Additional info

Can someone please advise how this swatch object is intended to work and where I can populate the values for the options I’m iterating over? Apologies if I’m missing something simple here. This came up while investigating combined listings but unsure how to use it generally.

What type of topic is this

Troubleshooting

Look into Category Metafields, which allows you to set colors.