---
title: MetaobjectConnection - Storefront API
description: |
  An auto-generated type for paginating through multiple Metaobjects.
api_version: 2026-04
api_name: storefront
type: connection
api_type: graphql
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/connections/MetaobjectConnection
  md: >-
    https://shopify.dev/docs/api/storefront/latest/connections/MetaobjectConnection.md
---

# Metaobject​Connection

connection

An auto-generated type for paginating through multiple Metaobjects.

## Queries with this connection

* [metaobjects](https://shopify.dev/docs/api/storefront/latest/queries/metaobjects)

  query

  Returns a paginated list of [`Metaobject`](https://shopify.dev/docs/api/storefront/2026-04/objects/Metaobject) entries for a specific type. Metaobjects are [custom data structures](https://shopify.dev/docs/apps/build/metaobjects) 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.

  * type

    [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

    required

    ### Arguments

    The type of metaobject to retrieve.

  * sort​Key

    [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

    The key of a field to sort with. Supports "id" and "updated\_at".

  * first

    [Int](https://shopify.dev/docs/api/storefront/latest/scalars/Int)

    Returns up to the first `n` elements from the list.

  * after

    [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

    Returns the elements that come after the specified cursor.

  * last

    [Int](https://shopify.dev/docs/api/storefront/latest/scalars/Int)

    Returns up to the last `n` elements from the list.

  * before

    [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

    Returns the elements that come before the specified cursor.

  * reverse

    [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean)

    Default:false

    Reverse the order of the underlying list.

  ***

***

## Possible returns

* edges

  [\[Metaobject​Edge!\]!](https://shopify.dev/docs/api/storefront/latest/objects/MetaobjectEdge)

  non-null

  A list of edges.

* nodes

  [\[Metaobject!\]!](https://shopify.dev/docs/api/storefront/latest/objects/Metaobject)

  non-null

  A list of the nodes contained in MetaobjectEdge.

* page​Info

  [Page​Info!](https://shopify.dev/docs/api/storefront/latest/objects/PageInfo)

  non-null

  Information to aid in pagination.

***

## Map

### Queries with this connection

* [metaobjects](https://shopify.dev/docs/api/storefront/latest/queries/metaobjects)

### Possible returns

* [Metaobject​Connection.edges](https://shopify.dev/docs/api/storefront/latest/connections/MetaobjectConnection#returns-edges)
* [Metaobject​Connection.nodes](https://shopify.dev/docs/api/storefront/latest/connections/MetaobjectConnection#returns-nodes)
* [Metaobject​Connection.pageInfo](https://shopify.dev/docs/api/storefront/latest/connections/MetaobjectConnection#returns-pageInfo)
