Why is boolean Metafield update not working (when strings do)?

Topic summary

A developer encountered an issue updating a boolean metafield in a checkout UI extension, while string metafield updates worked successfully.\n\nThe Problem:\n- String metafields update correctly using applyMetafieldsChange with `valueType: \

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hey @no_robotocha

The applyMetafieldsChange function currently only supports ‘integer’, ‘string’, and ‘json_string’ as value types. As a workaround you could consider storing it as a string or integer and then converting it back to a boolean in your code.

1 Like