# Metafields and metaobjects

Definitions of every metafield and metaobject the Handoff theme reads by default. Create the metaobject definitions first, then the metafield definitions. Keys can be changed: each block has a "Metafield" setting written namespace.key.

The definitions are in [`kit/metafields.json`](kit/metafields.json), ready for the GraphQL Admin API. Create the metaobject definitions first.

## Metaobject definitions

### FAQ item (`faq_item`)

| Field | Key | Type | Required | Notes |
|---|---|---|---|---|
| Question | `question` | single_line_text_field | yes | The question, in the words customers use. |
| Answer | `answer` | multi_line_text_field | yes | Starts with the answer itself, then the detail. Facts only. |

### Compatibility item (`compatibility_item`)

| Field | Key | Type | Required | Notes |
|---|---|---|---|---|
| Model or family | `name` | single_line_text_field | yes | The machine, model, or family this row is about. |
| Model codes | `model_codes` | list.single_line_text_field | no | Codes printed on the product, one per entry. |
| Fit | `status` | single_line_text_field | yes | fits, does_not_fit, or ask. Use ask when the fit is not verified. |
| Note | `note` | single_line_text_field | no | A short note, for example the adapter that is needed. |

## Metafield definitions

| Owner | Metafield | Name | Type | Notes |
|---|---|---|---|---|
| product | `custom.quick_answer` | Quick answer | multi_line_text_field | One or two sentences: what the product is, who it is for, what is included. Shown in the Quick answer block. |
| product | `custom.size` | Size | single_line_text_field | Main size with its unit, for example 58.5 mm. Shown in the At a glance block. |
| product | `custom.material` | Material | single_line_text_field | Main materials, for example 304 stainless steel. Shown in the At a glance block. |
| product | `custom.in_the_box` | In the box | list.single_line_text_field | What the buyer receives, one item per entry. Shown in the At a glance block. |
| product | `custom.who_its_for` | Who it is for | list.single_line_text_field | Short points on who the product suits. Shown in the Who it is for block. |
| product | `custom.not_for` | Not for | list.single_line_text_field | Short points on when another product is a better choice. Shown in the Who it is for block. |
| product | `custom.faq` | Questions | list.metaobject_reference (faq_item) | Questions and answers about this product. Shown in the Questions block and declared as FAQPage structured data. |
| product | `custom.compatibility` | Compatibility | list.metaobject_reference (compatibility_item) | What the product fits and does not fit. Shown in the Compatibility table block. |
| product | `custom.related_guides` | Related guides | list.article_reference | Guides that help choose or use this product. Shown in the Related guides block. |
| product | `custom.brand` | Brand | single_line_text_field | The real brand of the product. Declared as brand in structured data. Leave empty when the store is the brand and you do not want it declared. |
| collection | `custom.quick_answer` | Quick answer | multi_line_text_field | One or two sentences that say what the collection holds and for whom. |
| collection | `custom.buying_guide` | Buying guide | multi_line_text_field | Three to five sentences on how to choose among the products of this collection. Shown in the Buying guide intro block. |
| collection | `custom.faq` | Questions | list.metaobject_reference (faq_item) | Questions and answers about this collection. |
| article | `custom.faq` | Questions | list.metaobject_reference (faq_item) | Questions and answers at the end of this guide. |
| article | `custom.related_products` | Related products | list.product_reference | Products named in this guide. Shown with a buy button in the Products in the article block. |
| page | `custom.faq` | Questions | list.metaobject_reference (faq_item) | Questions and answers on this page. |
