Anchor to section titled 'undefined'

standardMetafieldDefinitionTemplates
query

Standard metafield definitions are intended for specific, common use cases. Their namespace and keys reflect these use cases and are reserved.

Refer to all available Standard Metafield Definition Templates.


The elements that come after the specified cursor.

The elements that come before the specified cursor.

The first n elements from the paginated list.

The last n elements from the paginated list.

Anchor to reverse
reverse
default:false

Reverse the order of the underlying list.


Was this section helpful?
Anchor to section titled 'StandardMetafieldDefinitionTemplateConnection possible returns'

StandardMetafieldDefinitionTemplateConnection possible returns


The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.

A list of nodes that are contained in StandardMetafieldDefinitionTemplateEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.

An object that’s used to retrieve cursor information about the current page.


Was this section helpful?
Get a list of standard metafield definition templates
Hide code
DescriptionCopy
query StandardMetafieldDefinitionTemplates {
  standardMetafieldDefinitionTemplates(first: 5) {
    edges {
      node {
        id
        name
        namespace
        key
        description
        ownerTypes
        type {
          name
        }
      }
    }
  }
}
Hide code
Response
JSON
{
  "standardMetafieldDefinitionTemplates": {
    "edges": [
      {
        "node": {
          "id": "gid://shopify/StandardMetafieldDefinitionTemplate/1",
          "name": "Product subtitle",
          "namespace": "descriptors",
          "key": "subtitle",
          "description": "Used as a shorthand for a product name",
          "ownerTypes": [
            "PRODUCT",
            "PRODUCTVARIANT"
          ],
          "type": {
            "name": "single_line_text_field"
          }
        }
      },
      {
        "node": {
          "id": "gid://shopify/StandardMetafieldDefinitionTemplate/2",
          "name": "Care guide",
          "namespace": "descriptors",
          "key": "care_guide",
          "description": "Instructions for taking care of a product or apparel",
          "ownerTypes": [
            "PRODUCT",
            "PRODUCTVARIANT"
          ],
          "type": {
            "name": "multi_line_text_field"
          }
        }
      },
      {
        "node": {
          "id": "gid://shopify/StandardMetafieldDefinitionTemplate/3",
          "name": "ISBN",
          "namespace": "facts",
          "key": "isbn",
          "description": "International Standard Book Number",
          "ownerTypes": [
            "PRODUCT",
            "PRODUCTVARIANT"
          ],
          "type": {
            "name": "single_line_text_field"
          }
        }
      },
      {
        "node": {
          "id": "gid://shopify/StandardMetafieldDefinitionTemplate/4",
          "name": "UPC",
          "namespace": "facts",
          "key": "upc",
          "description": "Universal Product Code",
          "ownerTypes": [
            "PRODUCT",
            "PRODUCTVARIANT"
          ],
          "type": {
            "name": "single_line_text_field"
          }
        }
      },
      {
        "node": {
          "id": "gid://shopify/StandardMetafieldDefinitionTemplate/5",
          "name": "EAN",
          "namespace": "facts",
          "key": "ean",
          "description": "European Article Number",
          "ownerTypes": [
            "PRODUCT",
            "PRODUCTVARIANT"
          ],
          "type": {
            "name": "single_line_text_field"
          }
        }
      }
    ]
  }
}