Skip to content

Commit 9fe564f

Browse files
Added attributes from catalog into the schema
1 parent 7765351 commit 9fe564f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/etc/schema.graphqls

+22
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,28 @@ interface ProductInterface {
99
thumbnail: OptimizedProductImage @resolver(class: "ScandiPWA\\Performance\\Model\\Resolver\\Value")
1010
only_x_left_in_stock: Float @resolver(class: "ScandiPWA\\Performance\\Model\\Resolver\\Value")
1111
stock_status: ProductStockStatus @resolver(class: "ScandiPWA\\Performance\\Model\\Resolver\\Value")
12+
s_attributes: [AttributeWithValue]
13+
}
14+
15+
type AttributeWithValue {
16+
attribute_code: String
17+
entity_type: String
18+
attribute_type: String
19+
attribute_value: String
20+
attribute_label: String
21+
attribute_id: Int
22+
attribute_options: [AttributeWithValueOption]
23+
}
24+
25+
type AttributeWithValueOption {
26+
label: String
27+
value: String
28+
swatch_data: AttributeWithValueSwatchData
29+
}
30+
31+
type AttributeWithValueSwatchData {
32+
type: String
33+
value: String
1234
}
1335

1436
type OptimizedProductImage {

0 commit comments

Comments
 (0)