metaobjects
Requires access scope.
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 using the argument.
MetaobjectConnection arguments
- after (String)
- before (String)
- first (Int)
- last (Int)
- reverse (Boolean)
- sortKey (String)
- type (String!)
- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•String
Key The key of a field to sort with. Supports "id" and "updated_at".
- Anchor to typetype•String!required
The type of metaobject to retrieve.
Anchor to Possible returnsPossible returns
- edges ([MetaobjectEdge!]!)
- nodes ([Metaobject!]!)
- pageInfo (PageInfo!)
- Anchor to edgesedges•[Metaobject
Edge!]! non-null A list of edges.
- Anchor to nodesnodes•[Metaobject!]!non-null
A list of the nodes contained in MetaobjectEdge.
- Anchor to pageInfopage•Page
Info Info! non-null Information to aid in pagination.