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!

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)?

Hey @Vera_Auflauf are you still experiencing this issue, or can I mark this as solved?

Hi @KyleG-Shopify :slight_smile:

Thank you for your feedback!

The behavior is still the same: The option value name on the product does not contain the same value as its linked metaobject.

I assume the merchant added that leading space indeed unintentionally to the metaobject value. From our perspective It would be preferable if such small things wouldn’t lead to inconsistency in the data returned by the graphQL and force us to account for irregularities we cannot predict.

Hey @Vera_Auflauf, thanks for following up! I’ve gone ahead and submitted this as a feature request to have normalization applied consistently so both paths always return the same canonical value.

I’m going to mark this thread as solved for now, but the issue is submitted.