Skip to main content

AttributeValue Object

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

AttributeValue.id ● ID! non-null scalar miscellaneous

The ID of the attribute value.

AttributeValue.name ● String scalar miscellaneous

Name of a value displayed in the interface.

AttributeValue.slug ● String scalar miscellaneous

Internal representation of a value (unique per attribute).

AttributeValue.value ● String scalar miscellaneous

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

AttributeValue.translation ● AttributeValueTranslation object attributes

Returns translated attribute value fields for the given language code.

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

A language code to return the translation for attribute value.

AttributeValue.inputType ● AttributeInputTypeEnum enum attributes

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

AttributeValue.reference ● ID scalar miscellaneous

The ID of the attribute reference.

AttributeValue.file ● File object miscellaneous

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

AttributeValue.richText ● JSONString scalar miscellaneous

Represents the text of the attribute value, includes formatting.

Rich text format. For reference see https://editorjs.io/

AttributeValue.plainText ● String scalar miscellaneous

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

AttributeValue.boolean ● Boolean scalar miscellaneous

Represents the boolean value of the attribute value.

AttributeValue.date ● Date scalar miscellaneous

Represents the date value of the attribute value.

AttributeValue.dateTime ● DateTime scalar miscellaneous

Represents the date/time value of the attribute value.

AttributeValue.externalReference ● String scalar miscellaneous

External ID of this attribute value.

Interfaces

Node interface miscellaneous

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