product.graphql 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. priceWithTax
  59. taxRateApplied {
  60. id
  61. name
  62. value
  63. }
  64. taxCategory {
  65. id
  66. name
  67. }
  68. sku
  69. options {
  70. id
  71. code
  72. languageCode
  73. name
  74. }
  75. facetValues {
  76. id
  77. code
  78. name
  79. facet {
  80. id
  81. name
  82. }
  83. }
  84. featuredAsset {
  85. ...Asset
  86. }
  87. assets {
  88. ...Asset
  89. }
  90. translations {
  91. id
  92. languageCode
  93. name
  94. }
  95. }