Skip to content

Commit 205685e

Browse files
Merge pull request #10 from scandipwa/m-2.4.1
Added support for Magento 2.4.1
2 parents 7bd9298 + 9fe564f commit 205685e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/Model/Resolver/Products/DataPostProcessor/Attributes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Attributes implements ProductsDataPostProcessorInterface
3232
{
3333
use ResolveInfoFieldsTrait;
3434

35-
const ATTRIBUTES = 'attributes';
35+
const ATTRIBUTES = 's_attributes';
3636

3737
/**
3838
* @var Data

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)