Ergonode docs
Search…
List of 50 grouped products with simple and variable products
This will allow you to get list of first 50 product no matter if they're simple or variable.
Please remember that limit for "first" is 200
1
query groupingProduct {
2
productStream(first: 50) {
3
... ProductConnection
4
edges {
5
node {
6
... on GroupingProduct {
7
... Product
8
childrenList {
9
totalCount
10
pageInfo {
11
hasNextPage
12
endCursor
13
}
14
edges {
15
node {
16
quantity
17
product {
18
... SimpleProduct
19
... VariableProduct
20
}
21
}
22
}
23
}
24
}
25
template {
26
code
27
}
28
}
29
}
30
}
31
}
32
33
fragment SimpleProduct on SimpleProduct {
34
... Product
35
attributeList {
36
... AttributeValueConnection
37
}
38
}
39
40
fragment VariableProduct on VariableProduct {
41
... Product
42
attributeList {
43
... AttributeValueConnection
44
}
45
bindings {
46
... Attribute
47
options {
48
code
49
label {
50
value
51
language
52
}
53
}
54
}
55
variantList {
56
... ProductConnection
57
}
58
}
59
60
fragment AttributeValueConnection on AttributeValueConnection {
61
totalCount
62
pageInfo {
63
hasNextPage
64
endCursor
65
}
66
edges {
67
node {
68
attribute {
69
... Attribute
70
}
71
valueTranslations {
72
language
73
}
74
}
75
}
76
}
77
78
fragment Attribute on Attribute {
79
code
80
label {
81
value
82
language
83
}
84
scope
85
}
86
87
fragment Product on Product {
88
__typename
89
sku
90
createdAt
91
editedAt
92
}
93
94
fragment ProductConnection on ProductConnection {
95
totalCount
96
pageInfo {
97
hasNextPage
98
endCursor
99
}
100
edges {
101
node {
102
... Product
103
}
104
}
105
}
Copied!
Copy link