Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

44 linhas
3.0 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Query {
  4. customAttributeMetadata(attributes: [AttributeInput!]! @doc(description: "An input object that specifies the attribute code and entity type to search.")): CustomAttributeMetadata @resolver(class: "Magento\\EavGraphQl\\Model\\Resolver\\CustomAttributeMetadata") @doc(description: "Return the attribute type, given an attribute code and entity type.") @cache(cacheable: false)
  5. }
  6. type CustomAttributeMetadata @doc(description: "Defines an array of custom attributes.") {
  7. items: [Attribute] @doc(description: "An array of attributes.")
  8. }
  9. type Attribute @doc(description: "Contains details about the attribute, including the code and type.") {
  10. attribute_code: String @doc(description: "The unique identifier for an attribute code. This value should be in lowercase letters without spaces.")
  11. entity_type: String @doc(description: "The type of entity that defines the attribute.")
  12. attribute_type: String @doc(description: "The data type of the attribute.")
  13. input_type: String @doc(description: "The frontend input type of the attribute.")
  14. attribute_options: [AttributeOption] @resolver(class: "Magento\\EavGraphQl\\Model\\Resolver\\AttributeOptions") @doc(description: "Attribute options list.")
  15. storefront_properties: StorefrontProperties @doc(description: "Details about the storefront properties configured for the attribute.")
  16. }
  17. type StorefrontProperties @doc(description: "Indicates where an attribute can be displayed.") {
  18. use_in_product_listing: Boolean @doc(description: "Indicates whether the attribute is displayed in product listings.")
  19. position: Int @doc(description: "The relative position of the attribute in the layered navigation block.")
  20. visible_on_catalog_pages: Boolean @doc(description: "Indicates whether the attribute is displayed on product pages.")
  21. use_in_layered_navigation: UseInLayeredNavigationOptions @doc(description: "Indicates whether the attribute is filterable with results, without results, or not at all.")
  22. use_in_search_results_layered_navigation: Boolean @doc(description: "Indicates whether the attribute can be used in layered navigation on search results pages.")
  23. }
  24. enum UseInLayeredNavigationOptions @doc(description: "Defines whether the attribute is filterable in layered navigation.") {
  25. NO
  26. FILTERABLE_WITH_RESULTS
  27. FILTERABLE_NO_RESULT
  28. }
  29. type AttributeOption @doc(description: "Defines an attribute option.") {
  30. label: String @doc(description: "The label assigned to the attribute option.")
  31. value: String @doc(description: "The attribute option value.")
  32. }
  33. input AttributeInput @doc(description: "Defines the attribute characteristics to search for the `attribute_code` and `entity_type` to search.") {
  34. attribute_code: String @doc(description: "The unique identifier for an attribute code. This value should be in lowercase letters without spaces.")
  35. entity_type: String @doc(description: "The type of entity that defines the attribute.")
  36. }