AttributeCreateInput
Input for creating an attribute
input AttributeCreateInput {
inputType: AttributeInputTypeEnum
entityType: String
name: String
slug: String
type: AttributeTypeEnum
unit: String
values: [AttributeValueCreateInput!]
valueRequired: Boolean
isVariantOnly: Boolean
visibleInStorefront: Boolean
filterableInStorefront: Boolean
filterableInDashboard: Boolean
storefrontSearchPosition: Int
availableInGrid: Boolean
createdBy: String
isLocked: Boolean
}
Fields
AttributeCreateInput.inputType ● AttributeInputTypeEnum enum
The input type for this attribute.
AttributeCreateInput.entityType ● String scalar
The entity type this attribute applies to.
AttributeCreateInput.name ● String scalar
Name of the attribute.
AttributeCreateInput.slug ● String scalar
Slug of the attribute.
AttributeCreateInput.type ● AttributeTypeEnum enum
The attribute type (PRODUCT, VARIANT, or CUSTOM).
AttributeCreateInput.unit ● String scalar
The measurement unit for this attribute.
AttributeCreateInput.values ● [AttributeValueCreateInput!] list input
List of attribute values to create with the attribute.
AttributeCreateInput.valueRequired ● Boolean scalar
Whether a value is required.
AttributeCreateInput.isVariantOnly ● Boolean scalar
Whether this is variant-only.
AttributeCreateInput.visibleInStorefront ● Boolean scalar
Whether visible in storefront.
AttributeCreateInput.filterableInStorefront ● Boolean scalar
Whether filterable in storefront.
AttributeCreateInput.filterableInDashboard ● Boolean scalar
Whether filterable in dashboard.
AttributeCreateInput.storefrontSearchPosition ● Int scalar
Search position in storefront.
AttributeCreateInput.availableInGrid ● Boolean scalar
Whether available in grid view.
AttributeCreateInput.createdBy ● String scalar
User ID who created the attribute.
AttributeCreateInput.isLocked ● Boolean scalar
Whether the attribute is locked from editing.
Member Of
attributeCreate mutation