Skip to main content
Version: 3.x


Represents a value of an attribute.

type AttributeValue implements Node {
id: ID!
name: String
slug: String
value: String
translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation
inputType: AttributeInputTypeEnum
reference: ID
file: File
richText: JSONString
plainText: String
boolean: Boolean
date: Date
dateTime: DateTime
externalReference: String

Fields ● ID! non-null scalar

The ID of the attribute value. ● String scalar

Name of a value displayed in the interface.

AttributeValue.slug ● String scalar

Internal representation of a value (unique per attribute).

AttributeValue.value ● String scalar

Represent value of the attribute value (e.g. color values for swatch attributes).

AttributeValue.translation ● AttributeValueTranslation object

Returns translated attribute value fields for the given language code.

AttributeValue.translation.languageCode ● LanguageCodeEnum! non-null enum

A language code to return the translation for attribute value.

AttributeValue.inputType ● AttributeInputTypeEnum enum

The input type to use for entering attribute values in the dashboard.

AttributeValue.reference ● ID scalar

The ID of the attribute reference.

AttributeValue.file ● File object

Represents file URL and content type (if attribute value is a file).

AttributeValue.richText ● JSONString scalar

Represents the text of the attribute value, includes formatting.

Rich text format. For reference see

AttributeValue.plainText ● String scalar

Represents the text of the attribute value, plain text without formating.

AttributeValue.boolean ● Boolean scalar

Represents the boolean value of the attribute value. ● Date scalar

Represents the date value of the attribute value.

AttributeValue.dateTime ● DateTime scalar

Represents the date/time value of the attribute value.

AttributeValue.externalReference ● String scalar

External ID of this attribute value.

Added in Saleor 3.10


Node interface

An object with an ID

Member of

AttributeValueCountableEdge object ● AttributeValueCreate object ● AttributeValueCreated object ● AttributeValueDelete object ● AttributeValueDeleted object ● AttributeValueTranslatableContent object ● AttributeValueTranslate object ● AttributeValueUpdate object ● AttributeValueUpdated object ● SelectedAttribute object

Was this page helpful?