OBJECT

Attribute

Custom attribute of a product. Attributes can be assigned to products and variants at the product type level.

link GraphQL Schema definition

  • type Attribute implements Node {
  • # The ID of the object.
  • id: ID!
  • # Arguments
  • # before:
  • # after:
  • # first:
  • # last:
  • productTypes(before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection!
  • # Arguments
  • # before:
  • # after:
  • # first:
  • # last:
  • productVariantTypes(
  • before: String,
  • after: String,
  • first: Int,
  • last: Int
  • ): ProductTypeCountableConnection!
  • # List of privately stored metadata namespaces.
  • privateMeta: [MetaStore]!
  • # List of publicly stored metadata namespaces.
  • meta: [MetaStore]!
  • # The input type to use for entering attribute values in the
  • # dashboard.
  • inputType: AttributeInputTypeEnum
  • # Name of an attribute displayed in the interface.
  • name: String
  • # Internal representation of an attribute name.
  • slug: String
  • # List of attribute's values.
  • values: [AttributeValue]
  • # Whether the attribute requires values to be passed or not.
  • valueRequired: Boolean!
  • # Whether the attribute should be visible or not in storefront.
  • visibleInStorefront: Boolean!
  • # Whether the attribute can be filtered in storefront.
  • filterableInStorefront: Boolean!
  • # Whether the attribute can be filtered in dashboard.
  • filterableInDashboard: Boolean!
  • # Whether the attribute can be displayed in the admin product list.
  • availableInGrid: Boolean!
  • # Returns translated Attribute fields for the given language code.
  • #
  • # Arguments
  • # languageCode:
  • translation(languageCode: LanguageCodeEnum!): AttributeTranslation
  • # The position of the attribute in the storefront navigation (0 by
  • # default).
  • storefrontSearchPosition: Int!
  • }