Skip to main content
Anchor to MetaobjectConnection

MetaobjectConnection

connection

An auto-generated type for paginating through multiple Metaobjects.

Anchor to Queries with this connectionQueries with this connection

•query

Returns a paginated list of Metaobject entries for a specific type. Metaobjects are custom data structures that extend Shopify's data model with merchant-defined or app-defined content like size charts, product highlights, or custom sections.

The required type argument specifies which metaobject type to retrieve. You can sort results by id or updated_at using the sortKey argument.

Arguments

•String!
required

The type of metaobject to retrieve.

•String

The key of a field to sort with. Supports "id" and "updated_at".

•Int

Returns up to the first n elements from the list.

•String

Returns the elements that come after the specified cursor.

•Int

Returns up to the last n elements from the list.

•String

Returns the elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.



Was this section helpful?

•[MetaobjectEdge!]!
non-null

A list of edges.

•[Metaobject!]!
non-null

A list of the nodes contained in MetaobjectEdge.

•PageInfo!
non-null

Information to aid in pagination.


Was this section helpful?