Index: vendor/magento/module-eav-graph-ql/Model/Resolver/Cache/CustomAttributeMetadataIdentity.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/vendor/magento/module-eav-graph-ql/Model/Resolver/Cache/CustomAttributeMetadataIdentity.php b/vendor/magento/module-eav-graph-ql/Model/Resolver/Cache/CustomAttributeMetadataIdentity.php new file mode 100644 --- /dev/null (date 1683056957379) +++ b/vendor/magento/module-eav-graph-ql/Model/Resolver/Cache/CustomAttributeMetadataIdentity.php (date 1683056957379) @@ -0,0 +1,40 @@ +UTF-8 =================================================================== diff --git a/vendor/magento/module-eav-graph-ql/etc/schema.graphqls b/vendor/magento/module-eav-graph-ql/etc/schema.graphqls --- a/vendor/magento/module-eav-graph-ql/etc/schema.graphqls (revision d846142a3ab8b49597dfb8bd7508d875efdab19a) +++ b/vendor/magento/module-eav-graph-ql/etc/schema.graphqls (date 1683057037104) @@ -2,7 +2,7 @@ # See COPYING.txt for license details. type Query { - customAttributeMetadata(attributes: [AttributeInput!]! @doc(description: "An input object that specifies the attribute code and entity type to search.")): CustomAttributeMetadata @resolver(class: "Magento\\EavGraphQl\\Model\\Resolver\\CustomAttributeMetadata") @doc(description: "Return the attribute type, given an attribute code and entity type.") @cache(cacheable: false) + customAttributeMetadata(attributes: [AttributeInput!]! @doc(description: "An input object that specifies the attribute code and entity type to search.")): CustomAttributeMetadata @resolver(class: "Magento\\EavGraphQl\\Model\\Resolver\\CustomAttributeMetadata") @doc(description: "Return the attribute type, given an attribute code and entity type.") @cache(cacheIdentity: "Magento\\EavGraphQl\\Model\\Resolver\\Cache\\CustomAttributeMetadataIdentity") } type CustomAttributeMetadata @doc(description: "Defines an array of custom attributes.") { Index: vendor/magento/module-eav-graph-ql/etc/di.xml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/vendor/magento/module-eav-graph-ql/etc/di.xml b/vendor/magento/module-eav-graph-ql/etc/di.xml new file mode 100644 --- /dev/null (date 1683057024597) +++ b/vendor/magento/module-eav-graph-ql/etc/di.xml (date 1683057024597) @@ -0,0 +1,12 @@ + + + + + + + Index: vendor/magento/module-eav-graph-ql/Plugin/Eav/AttributePlugin.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/vendor/magento/module-eav-graph-ql/Plugin/Eav/AttributePlugin.php b/vendor/magento/module-eav-graph-ql/Plugin/Eav/AttributePlugin.php new file mode 100644 --- /dev/null (date 1683057006706) +++ b/vendor/magento/module-eav-graph-ql/Plugin/Eav/AttributePlugin.php (date 1683057006706) @@ -0,0 +1,41 @@ +getEntityType()->getEntityTypeCode(), + $subject->getOrigData(AttributeInterface::ATTRIBUTE_CODE) + ?? $subject->getData(AttributeInterface::ATTRIBUTE_CODE) + ) + ] + ); + } +}