Skip to Content
API ReferenceTypesObjectsAttributeDefinition

No description

type AttributeDefinition { createdAt: DateTime! deletedAt: DateTime description: String id: Int! inputType: AttributeInputType! isActive: Boolean! isFilterable: Boolean! isRequired: Boolean! key: String! label: String! options: JSON position: Float! project: ProjectType! translations: [AttributeDefinitionTranslation!] type: AttributeType! unit: String updatedAt: DateTime }

Fields

AttributeDefinition.createdAt ● DateTime! non-null scalar {#created-at}

AttributeDefinition.deletedAt ● DateTime scalar {#deleted-at}

AttributeDefinition.description ● String scalar {#description}

Description of the attribute

AttributeDefinition.id ● Int! non-null scalar {#id}

AttributeDefinition.inputType ● AttributeInputType! non-null enum {#input-type}

UI input type for the attribute

AttributeDefinition.isActive ● Boolean! non-null scalar {#is-active}

Is this attribute active and available for use

AttributeDefinition.isFilterable ● Boolean! non-null scalar {#is-filterable}

Can this attribute be used for filtering

AttributeDefinition.isRequired ● Boolean! non-null scalar {#is-required}

Is this attribute required for products

AttributeDefinition.key ● String! non-null scalar {#key}

Unique key for the attribute (e.g., “capacity”, “height”)

AttributeDefinition.label ● String! non-null scalar {#label}

Default label for the attribute

AttributeDefinition.options ● JSON scalar {#options}

Type-specific options (min, max, choices, etc.)

AttributeDefinition.position ● Float! non-null scalar {#position}

Sort order for displaying attributes

AttributeDefinition.project ● ProjectType! non-null object {#project}

Project this attribute belongs to

AttributeDefinition.translations ● [AttributeDefinitionTranslation!] list object {#translations}

AttributeDefinition.type ● AttributeType! non-null enum {#type}

Data type of the attribute

AttributeDefinition.unit ● String scalar {#unit}

Unit of measurement (e.g., “KG”, “CM”, “L”)

AttributeDefinition.updatedAt ● DateTime scalar {#updated-at}

Returned By

publicFilterableAttributes query

Member Of

AttributeDefinitionTranslation object ● ProductAttribute object