Skip to main content
Anchor to metaobjectDefinition

metaobjectDefinition

query

Requires read_metaobject_definitions access scope.

Retrieves a MetaobjectDefinition by its global ID. Metaobject definitions provide the structure and fields for metaobjects.

The definition includes field configurations, access settings, display preferences, and capabilities that determine how metaobjects of this type behave across the Shopify platform.

ID!
required

The ID of the metaobject to return.


Was this section helpful?

Anchor to MetaobjectDefinitionMetaobjectDefinition
MetaobjectDefinition

Defines the structure and configuration for a custom data type in Shopify. Each definition specifies the fields, validation rules, and capabilities that apply to all Metaobject entries created from it.

The definition includes field definitions that determine what data to store, access controls for the Shopify admin and Storefront APIs, and capabilities such as publishability and translatability. You can track which App or StaffMember created the definition and optionally base it on a StandardMetaobjectDefinitionTemplate.


Was this section helpful?