--- url: https://developer.youcan.shop/themes/objects/metafield.md --- # `metafield` object A [metafield](/store-admin/metafields/overview) of a resource. The `metafields` property of a [product](product), [category](category), [page](page), [order](order) or the [store](store) groups the metafields by namespace, then by key: `product.metafields..`. A namespace or key that does not exist is nil. ### Properties *** | Name | Type | Description | | ------- | :--------------------------------: | :--------------------------------------------------- | | `value` | any | The metafield value | | `type` | [string](../basics/types#string) | The metafield type | | `list` | [boolean](../basics/types#boolean) | Whether the value is a list of values | ```liquid {% if product.metafields.reviews.rating %} {{ product.metafields.reviews.rating.value }} / 5 {% endif %} ```