product.graphql 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. query ($id: ID!){
  2. product(id: $id) {
  3. ...ProductWithVariants
  4. }
  5. }
  6. fragment ProductWithVariants on Product {
  7. id
  8. languageCode
  9. name
  10. slug
  11. description
  12. featuredAsset {
  13. ...Asset
  14. }
  15. assets {
  16. ...Asset
  17. }
  18. translations {
  19. languageCode
  20. name
  21. slug
  22. description
  23. }
  24. optionGroups {
  25. id
  26. languageCode
  27. code
  28. name
  29. }
  30. variants {
  31. ...ProductVariant
  32. }
  33. facetValues {
  34. id
  35. code
  36. name
  37. facet {
  38. id
  39. name
  40. }
  41. }
  42. }
  43. fragment Asset on Asset {
  44. id
  45. name
  46. fileSize
  47. mimeType
  48. type
  49. preview
  50. source
  51. }
  52. fragment ProductVariant on ProductVariant {
  53. id
  54. languageCode
  55. name
  56. price
  57. currencyCode
  58. priceIncludesTax
  59. priceWithTax
  60. taxRateApplied {
  61. id
  62. name
  63. value
  64. }
  65. taxCategory {
  66. id
  67. name
  68. }
  69. sku
  70. options {
  71. id
  72. code
  73. languageCode
  74. name
  75. }
  76. facetValues {
  77. id
  78. code
  79. name
  80. facet {
  81. id
  82. name
  83. }
  84. }
  85. featuredAsset {
  86. ...Asset
  87. }
  88. assets {
  89. ...Asset
  90. }
  91. translations {
  92. id
  93. languageCode
  94. name
  95. }
  96. }