Discrepancy on return data between variant name and metaobject value

Hi Shopify,

We recently discovered an inconsistency in the option value returned when querying a product directly versus querying the same value from the linked metaobject.

Product query: the value is returned without a leading space.

Metaobject query: the same value includes a leading space.

Is this expected behavior? If not, could you adjust it so both return the exact same value as stored in the metaobject?

We use the option value name to generate the translatableContentDigest hash in our backend and this prevents us from using this approach reliably.

Thanks for your help!

2 Likes

Hey @Vera_Auflauf, I was testing here and when I configure using the predefined product metafield values I’m not seeing a leading space in the metaobject.

When you look at the linked metaobject, does the specified value have a leading space in it (possibly unintentionally)?