Metaobjects
Metaobjects are custom data structures that your app can define and create to store your app's information. Similar to metafields, they can be associated with a Shopify resource such as a product or a collection. However, they can also exist on their own. Metaobjects provide you with a way to create resources that Shopify doesn't offer out of the box.
Merchants can define their own metaobjects or use the ones that your app creates to extend their shop's data model. Metaobjects are also available in themes using Liquid, Storefront API, and Admin API.
Metaobject definitions and entries
Anchor link to section titled "Metaobject definitions and entries"The following terms are used when describing metaobjects:
- Definition: A template for which fields and properties you want to declare for your metaobjects.
- Entry: An metaobject entry created using a definition.
In the following GraphQL examples, a merchant wants to create a new resource in Shopify called Product Highlight
. A product highlight has a title, description and image that displays an interesting fact about a product.
The following examples shows the structure of the Product Highlight
metaobject definition:
The following example shows a Product Highlight
metaobject entry:
Developer resources
Anchor link to section titled "Developer resources"- Learn about controlling access to who can read and write metaobjects.
- Learn about managing metaobjects: Creating metaobject definitions and entries.
- Learn more about metaobject capabilities: Customizing behavior for your metaobjects.