---
title: metafieldDefinitions - Shop Partners API
description: List of metafield_definitions
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/queries/metafieldDefinitions
  md: https://shopify.dev/docs/api/shop-partners/latest/queries/metafieldDefinitions.md
---

# metafield​Definitions

query

List of metafield\_definitions

## MetafieldDefinitionConnection arguments

[MetafieldDefinitionConnection!](https://shopify.dev/docs/api/shop-partners/latest/connections/MetafieldDefinitionConnection)

* after

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

  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.

***

## Examples

* ### metafieldDefinitions reference