AttributeUpdateInput Input Type
Represents an input for update of attribute.
NOTE: Deprecated fields filterableInStorefront, storefrontSearchPosition and availableInGrid are not supported in bulk mutations: attributeBulkCreate, attributeBulkUpdate.
input AttributeUpdateInput {
name: String
slug: String
unit: MeasurementUnitsEnum
removeValues: [ID!]
addValues: [AttributeValueUpdateInput!]
valueRequired: Boolean
isVariantOnly: Boolean
visibleInStorefront: Boolean
filterableInStorefront: Boolean @deprecated
filterableInDashboard: Boolean @deprecated
storefrontSearchPosition: Int @deprecated
availableInGrid: Boolean @deprecated
externalReference: String
referenceTypes: [ID!]
}
Fields
name ● String
Name of an attribute displayed in the interface.
slug ● String
Internal representation of an attribute name.
unit ● MeasurementUnitsEnum
The unit of attribute values.
removeValues ● [ID!]
IDs of values to be removed from this attribute.
addValues ● [AttributeValueUpdateInput!]
New values to be created for this attribute.
valueRequired ● Boolean
Whether the attribute requires values to be passed or not.
isVariantOnly ● Boolean
Whether the attribute is for variants only.
visibleInStorefront ● Boolean
Whether the attribute should be visible or not in storefront.
externalReference ● String
External ID of this product.
referenceTypes ● [ID!]
Specifies reference types to narrow down the choices of reference objects. Applicable only for REFERENCE and SINGLE_REFERENCE attributes with PRODUCT, PRODUCT_VARIANT and PAGE entity types. Accepts ProductType IDs for PRODUCT and PRODUCT_VARIANT entity types, and PageType IDs for PAGE entity type. If omitted, all objects of the selected entity type are available as attribute values.
A maximum of 100 reference types can be specified.
Added in VapeEcommerce 3.22Show deprecatedHide deprecated
filterableInStorefront ● Boolean
This flag is not used by VapeEcommerce. Keep the logic in the storefront or use Attribute metadata instead.
Whether the attribute can be filtered in storefront.
filterableInDashboard ● Boolean
This flag is not used by VapeEcommerce. Keep the logic in the dashboard or use Attribute metadata instead.
Whether the attribute can be filtered in dashboard.
storefrontSearchPosition ● Int
This flag is not used by VapeEcommerce. Keep the logic in the storefront or use Attribute metadata instead.
The position of the attribute in the storefront navigation (0 by default).
availableInGrid ● Boolean
This flag is not used by VapeEcommerce. Keep the logic in the storefront or use Attribute metadata instead.
Whether the attribute can be displayed in the admin product list.
Member Of
AttributeBulkUpdateInput input ● attributeUpdate mutation