Skip to main content
query

Requires read_metaobjects access scope.

Retrieves a Metaobject by its handle and type. Handles are unique identifiers within a metaobject type.

•MetaobjectHandleInput!
required

The identifier of the metaobject to return.

Show input fields

Was this section helpful?

•Metaobject

An instance of custom structured data defined by a MetaobjectDefinition. Metaobjects store reusable data that extends beyond Shopify's standard resources, such as product highlights, size charts, or custom content sections.

Each metaobject includes fields that match the field types and validation rules specified in its definition, which also determines the metaobject's capabilities, such as storefront visibility, publishing and translation support. Metafields can reference metaobjects to connect custom data with Product objects, Collection objects, and other Shopify resources.

Show fields
•MetaobjectCapabilityData!
non-null

Metaobject capabilities for this Metaobject.

Show fields
•DateTime!
non-null

When the object was created.

•App!
non-null

The app used to create the object.

Show fields
•App!
non-null

The app used to create the object.

Show fields
•StaffMember

The staff member who created the metaobject.

Show fields
•MetaobjectDefinition!
non-null

The MetaobjectDefinition that models this object type.

Show fields
•String!
non-null

The preferred display name field value of the metaobject.

•MetaobjectField

The field for an object key, or null if the key has no field definition.

Show fields

Arguments

•String!
required

The metaobject key to access.


•[MetaobjectField!]!
non-null

All ordered fields of the metaobject with their definitions and values.

Show fields
•String!
non-null

The unique handle of the object, useful as a custom ID.

•ID!
non-null

A globally-unique ID.

•MetafieldRelationConnection!
non-null

List of back references metafields that belong to the resource.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•MetaobjectField

The recommended field to visually represent this metaobject. May be a file reference or color field.

Show fields
•String!
non-null

The type of the metaobject.

•DateTime!
non-null

When the object was last updated.

•JSON!
non-null

The values of the metaobject.

•App!
non-nullDeprecated
Show fields
•StaffMember
Deprecated
Show fields

Was this section helpful?