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.
Users 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: A metaobject entry created using a definition.
In the following GraphQL examples, a user 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 more about:
- Managing metaobjects: Creating metaobject definitions and entries.
- Metaobject access: Managing ownership and access for metaobjects.
- Metaobject capabilities: Customizing the behavior of metaobjects.
- Metaobject limits: How many metaobject definitions and entries can be created.