---
title: MetafieldDefinitionConnection - Shop Partners API
description: The connection type for MetafieldDefinition.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/connections/MetafieldDefinitionConnection
  md: https://shopify.dev/docs/api/shop-partners/latest/connections/MetafieldDefinitionConnection.md
---

# Metafield​Definition​Connection

connection

The connection type for MetafieldDefinition.

## Queries with this connection

* [metafield​Definitions](https://shopify.dev/docs/api/shop-partners/latest/queries/metafieldDefinitions)

  query

  List of metafield\_definitions

  * after

    [String](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

    ### Arguments

    Returns the elements that come after the specified cursor.

  * before

    [String](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

    Returns the elements that come before the specified cursor.

  * first

    [Int](https://shopify.dev/docs/api/shop-partners/latest/scalars/Int)

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

  * identifiers

    [\[Custom​Data​Key​Pair​Input!\]](https://shopify.dev/docs/api/shop-partners/latest/input-objects/CustomDataKeyPairInput)

    Default:\[]

    Key and namespace pair that together form the path to the definition. Key is required, Namespace defaults to the Client's implicit, reserved namespace if not provided. Leave blank to see everything available to the client.

  * last

    [Int](https://shopify.dev/docs/api/shop-partners/latest/scalars/Int)

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

  * reverse

    [Boolean](https://shopify.dev/docs/api/shop-partners/latest/scalars/Boolean)

    Reverse the order of the underlying list.

  * sort​Key

    [Metafield​Permissible​Sort​Keys](https://shopify.dev/docs/api/shop-partners/latest/enums/MetafieldPermissibleSortKeys)

    Default:KEY

    Sort the underlying listing by the given key.

  ***

***

## Possible returns

* edges

  [\[Metafield​Definition​Edge!\]!](https://shopify.dev/docs/api/shop-partners/latest/objects/MetafieldDefinitionEdge)

  non-null

  A list of edges.

* nodes

  [\[Metafield​Definition!\]!](https://shopify.dev/docs/api/shop-partners/latest/objects/MetafieldDefinition)

  non-null

  A list of nodes.

* page​Info

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

  non-null

  Information to aid in pagination.

***

## Map

### Queries with this connection

* [metafield​Definitions](https://shopify.dev/docs/api/shop-partners/latest/queries/metafieldDefinitions)

### Possible returns

* [Metafield​Definition​Connection.edges](https://shopify.dev/docs/api/shop-partners/latest/connections/MetafieldDefinitionConnection#returns-edges)
* [Metafield​Definition​Connection.nodes](https://shopify.dev/docs/api/shop-partners/latest/connections/MetafieldDefinitionConnection#returns-nodes)
* [Metafield​Definition​Connection.pageInfo](https://shopify.dev/docs/api/shop-partners/latest/connections/MetafieldDefinitionConnection#returns-pageInfo)