INPUT_OBJECT

AttributeCreateInput

link GraphQL Schema definition

  • input AttributeCreateInput {
  • # 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: [AttributeValueCreateInput]
  • # Whether the attribute requires values to be passed or not.
  • valueRequired: Boolean
  • # Whether the attribute is for variants only.
  • isVariantOnly: 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
  • # The position of the attribute in the storefront navigation (0 by
  • # default).
  • storefrontSearchPosition: Int
  • # Whether the attribute can be displayed in the admin product list.
  • availableInGrid: Boolean
  • }

link Require by