useParsedMetafields

The useParsedMetafields hook transforms a MetafieldConnection in an array of metafields whose values have been parsed according to the metafield type.

Example code

Return type

This hook returns an array of metafields whose values have been parsed according to the metafield type. For details on the parsed value, refer to the parseMetafieldValue utility.