Skip to main content
Anchor to metaobjectDefinitionByType

metaobjectDefinitionByType

query

Requires read_metaobject_definitions access scope.

Retrieves a MetaobjectDefinition by its type. The type serves as a unique identifier that distinguishes one metaobject definition from another.

String!
required

The type of the metaobject definition 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?