Skip to main content
Glama
metaobject_definition.md1.05 kB
# metaobject_definition ## Description A `metaobject_definition` establishes the structure for a metaobject type, comprising merchant-defined [field definitions](https://help.shopify.com/en/manual/metafields/metafield-definitions). Corresponding [`metaobject`](https://shopify.dev/docs/api/liquid/objects#metaobject) instances hold the actual values for these specified fields. ## Properties | Property | Type | Description | |----------|------|-------------| | `values` | array of [metaobject](https://shopify.dev/docs/api/liquid/objects/metaobject) | "The metaobjects that follow the definition." | | `values_count` | number | "The total number of entries for the metaobject definition." | ## Usage Example Iterate through up to 50 metaobject entries using the `values` property: ```liquid {% for testimonial in metaobjects.testimonials.values %} {{ testimonial.author.value }} {% endfor %} ``` **Note:** When the `publishable` capability is active, only metaobjects with `active` status appear in loops; those marked `draft` are excluded.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server