Skip to main content
query

Requires unauthenticated_read_metaobjects access scope.

Retrieves a single Metaobject by either its global ID or its handle.


Note

When using the handle, you must also provide the metaobject type because handles are only unique within a type.


•MetaobjectHandleInput

The handle and type of the metaobject.

•ID

The ID of the metaobject.


Was this section helpful?

•Metaobject

An instance of custom structured data defined by a metaobject definition. Metaobjects store reusable content that extends beyond standard Shopify resources, such as size charts, author profiles, or custom content sections.

Each metaobject contains fields that match the types and validation rules specified in its definition. Metafield references can point to metaobjects, connecting custom data with products, collections, and other resources. If the definition has the renderable capability, then the seo field provides SEO metadata. If it has the online_store capability, then the onlineStoreUrl field returns the public URL.

•MetaobjectField

Accesses a field of the object by key.

Arguments

•String!
required

The key of the field.


•[MetaobjectField!]!
non-null

All object fields with defined values. Omitted object keys can be assumed null, and no guarantees are made about field order.

•String!
non-null

The unique handle of the metaobject. Useful as a custom ID.

•ID!
non-null

A globally-unique ID.

•URL

The URL used for viewing the metaobject on the shop's Online Store. Returns null if the metaobject definition doesn't have the online_store capability.

•MetaobjectSEO

The metaobject's SEO information. Returns null if the metaobject definition doesn't have the renderable capability.

•String!
non-null

The type of the metaobject.

•DateTime!
non-null

The date and time when the metaobject was last updated.


Was this section helpful?