Skip to main content

attribute Query

Look up an attribute by ID, slug or external reference.

attribute(
id: ID
slug: String
externalReference: String
): Attribute
Show return type

Arguments

id ● ID

ID of the attribute.

slug ● String

Slug of the attribute.

externalReference ● String

External ID of the attribute.

Type

Attribute

Custom attribute of a product. Attributes can be assigned to products and variants at the product type level.