> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/attributes/llms.txt)
> Source: https://docs.saleor.io/api-reference/attributes/objects/attribute-value

# AttributeValue Object

Represents a value of an attribute.

```graphql
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
}
```

<a id="fields"></a>

### Fields

<a id="id"></a>

#### [`id`](#id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

The ID of the attribute value.

<a id="name"></a>

#### [`name`](#name) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Name of a value displayed in the interface.

<a id="slug"></a>

#### [`slug`](#slug) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Internal representation of a value (unique per attribute).

<a id="value"></a>

#### [`value`](#value) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="translation"></a>

#### [`translation`](#translation) ● [`AttributeValueTranslation`](/api-reference/attributes/objects/attribute-value-translation.md)

Returns translated attribute value fields for the given language code.

<a id="attribute-value-translation-language-code"></a>

##### [`languageCode`](#attribute-value-translation-language-code) ● [`LanguageCodeEnum!`](/api-reference/miscellaneous/enums/language-code-enum.md)

A language code to return the translation for attribute value.

<a id="input-type"></a>

#### [`inputType`](#input-type) ● [`AttributeInputTypeEnum`](/api-reference/attributes/enums/attribute-input-type-enum.md)

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

<a id="reference"></a>

#### [`reference`](#reference) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

The ID of the referenced object.

<a id="file"></a>

#### [`file`](#file) ● [`File`](/api-reference/miscellaneous/objects/file.md)

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

<a id="rich-text"></a>

#### [`richText`](#rich-text) ● [`JSONString`](/api-reference/miscellaneous/scalars/jsonstring.md)

Represents the text of the attribute value, includes formatting.

Rich text format. For reference see [https://editorjs.io/](https://editorjs.io/)

<a id="plain-text"></a>

#### [`plainText`](#plain-text) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="boolean"></a>

#### [`boolean`](#boolean) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

Represents the boolean value of the attribute value.

<a id="date"></a>

#### [`date`](#date) ● [`Date`](/api-reference/miscellaneous/scalars/date.md)

Represents the date value of the attribute value.

<a id="date-time"></a>

#### [`dateTime`](#date-time) ● [`DateTime`](/api-reference/miscellaneous/scalars/date-time.md)

Represents the date/time value of the attribute value.

<a id="external-reference"></a>

#### [`externalReference`](#external-reference) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

External ID of this attribute value.

<a id="interfaces"></a>

### Interfaces

<a id="node"></a>

#### [`Node`](/api-reference/miscellaneous/interfaces/node.md)

An object with an ID

<a id="member-of"></a>

### Member Of

[`AttributeValueCountableEdge`](/api-reference/attributes/objects/attribute-value-countable-edge.md) object  ● [`AttributeValueCreate`](/api-reference/attributes/objects/attribute-value-create.md) object  ● [`AttributeValueCreated`](/api-reference/attributes/objects/attribute-value-created.md) object  ● [`AttributeValueDelete`](/api-reference/attributes/objects/attribute-value-delete.md) object  ● [`AttributeValueDeleted`](/api-reference/attributes/objects/attribute-value-deleted.md) object  ● [`AttributeValueTranslatableContent`](/api-reference/attributes/objects/attribute-value-translatable-content.md) object  ● [`AttributeValueTranslate`](/api-reference/attributes/objects/attribute-value-translate.md) object  ● [`AttributeValueUpdate`](/api-reference/attributes/objects/attribute-value-update.md) object  ● [`AttributeValueUpdated`](/api-reference/attributes/objects/attribute-value-updated.md) object  ● [`SelectedAttribute`](/api-reference/attributes/objects/selected-attribute.md) object
