Skip to main content
Version: 3.x

attribute

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

attribute(
id: ID
slug: String
externalReference: String
): Attribute

Arguments

attribute.id ● ID scalar

ID of the attribute.

attribute.slug ● String scalar

Slug of the attribute.

attribute.externalReference ● String scalar

External ID of the attribute.

Added in Saleor 3.10

Type

Attribute object

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


Was this page helpful?