Can`t get filter metaobject value

Topic summary

Goal: build a color swatch product filter using a Color metaobject in Shopify. Search & Discovery (S&D) is configured so the filter label uses the color name and the swatch should come from the metaobject’s “color” field.

Problem: On the storefront, the filter option exposes the label and a metaobject GID reference, but the referenced metaobject resolves empty. The filter option’s swatch value is also empty, so the actual color (e.g., hex) cannot be retrieved in the theme.

Attempts: Accessed the filter object’s swatch field and tried resolving the metaobject via the provided GID; both return no data.

Artifacts: Screenshots show S&D setup and theme/filter objects with empty swatch/metaobject values; these visuals are central to understanding the configuration.

Request: How to correctly obtain the color value for each filter option (or properly resolve the metaobject/GID in theme code).

Status: Unresolved; awaiting guidance or a workaround.

Summarized with AI on January 13. AI used: gpt-5.

Hi all!
I want to create metaobject-based color filter with swatch.
I`ve created a metaobject and setup Search&Discovery to filter by it

Search&Discovery shows that filters label is a colors name and a swatch will be “color” field of Color.
On my filter object I can get filter name(color name, in my case) and metaobject gid which it refers to but its is empty. I tried to take a filter object swatch field but it`s empty too.

How can I get a color value?

1 Like