Docs
Dashboard

Attribute

Object

Fields returned for attribute.

#

Fields


id
ID!

The unique identifier of the attribute.

metadata
[MetadataItem!]!

Gets the metadata associated with the attribute.

metafields
[Metafield!]!

A list of metafields associated with the attribute. If a metafield definition has no explicit assignment for this attribute, the definition’s default value is returned.

name
String!

The name of the attribute.

type
ProductAttributeType!

The type of the attribute.

Possible enum values
  • SWATCH

    Presents the attribute value as a visual swatch, such as a color or pattern.

  • TEXT

    Presents the attribute value as text.