Browse Source

add price tag

cart-api-guide
davey 3 days ago
parent
commit
2435e1de24
1 changed files with 14 additions and 2 deletions
  1. 14
    2
      src/services/ProductService.js

+ 14
- 2
src/services/ProductService.js View File

18
     {
18
     {
19
       products(first: 99) {
19
       products(first: 99) {
20
         nodes {
20
         nodes {
21
+          title
22
+      		tags
21
           media(first: 4) {
23
           media(first: 4) {
22
             nodes {
24
             nodes {
23
               previewImage {
25
               previewImage {
25
               }
27
               }
26
             }
28
             }
27
           }
29
           }
28
-          title
29
-          tags
30
+          
31
+          variants(first: 10) {
32
+            nodes {
33
+              id
34
+              title
35
+              price {
36
+                amount
37
+                currencyCode
38
+              }
39
+              sku
40
+            }
41
+          }
30
         }
42
         }
31
       }
43
       }
32
     }
44
     }

Loading…
Cancel
Save