Ergonode docs
Search…
List of simple products with attributes
This is how you can get a list of products with ALL attributes, if you do not need all of them, simply remove any of the lines that start with ... (three dots) in a fragment named Product.
1
query simpleProduct {
2
productStream {
3
totalCount
4
pageInfo {
5
hasNextPage
6
endCursor
7
}
8
edges {
9
node {
10
...Product
11
}
12
}
13
}
14
}
15
16
fragment Product on SimpleProduct {
17
__typename
18
editedAt
19
sku
20
attributeList {
21
edges {
22
node {
23
attribute {
24
code
25
scope
26
label {
27
value
28
language
29
}
30
scope
31
}
32
valueTranslations {
33
language
34
__typename
35
...ProductArrayAttributeValue
36
...MultimediaArrayAttributeValue
37
...MultimediaAttributeValue
38
...NumericAttributeValue
39
...StringArrayAttributeValue
40
...StringAttributeValue
41
}
42
}
43
}
44
}
45
categoryList {
46
totalCount
47
edges {
48
node {
49
code
50
name {
51
value
52
language
53
}
54
}
55
cursor
56
}
57
pageInfo {
58
hasNextPage
59
endCursor
60
}
61
}
62
}
63
64
fragment ProductArrayAttributeValue on ProductArrayAttributeValue {
65
language
66
ProductArrayAttributeValueValue: value {
67
sku
68
createdAt
69
editedAt
70
}
71
}
72
73
fragment MultimediaArrayAttributeValue on MultimediaArrayAttributeValue {
74
MultimediaArrayAttributeValueValue: value {
75
... Multimedia
76
}
77
}
78
79
fragment MultimediaAttributeValue on MultimediaAttributeValue {
80
MultimediaAttributeValueValue: value {
81
... Multimedia
82
}
83
}
84
85
fragment NumericAttributeValue on NumericAttributeValue {
86
NumericAttributeValueValue: value
87
}
88
89
fragment StringArrayAttributeValue on StringArrayAttributeValue {
90
StringArrayAttributeValueValue: value
91
}
92
93
fragment StringAttributeValue on StringAttributeValue {
94
StringAttributeValueVaule: value
95
}
96
97
fragment Multimedia on Multimedia {
98
name
99
path
100
size
101
extension
102
mime
103
folder {
104
name
105
}
106
url
107
alt {
108
value
109
}
110
}
Copied!
Copy link