schema.graphqls 948 B

1234567891011121314151617181920212223242526272829
  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. interface ProductInterface {
  4. swatch_image: String @doc(description: "The file name of a swatch image")
  5. }
  6. input ProductFilterInput {
  7. swatch_image: FilterTypeInput @doc(description: "The file name of a swatch image")
  8. }
  9. input ProductSortInput {
  10. swatch_image: SortEnum @doc(description: "The file name of a swatch image")
  11. }
  12. interface SwatchLayerFilterItemInterface @typeResolver(class: "Magento\\SwatchesGraphQl\\Model\\Resolver\\SwatchLayerFilterItemResolver")
  13. {
  14. swatch_data: SwatchData @doc(description: "Data required to render swatch filter item")
  15. }
  16. type SwatchLayerFilterItem implements LayerFilterItemInterface, SwatchLayerFilterItemInterface
  17. {
  18. }
  19. type SwatchData {
  20. type: String @doc(description: "Type of swatch filter item: 1 - text, 2 - image")
  21. value: String @doc(description: "Value for swatch item (text or image link)")
  22. }