magento / devdocs

[Deprecated] Magento Developer Documentation
Open Software License 3.0
674 stars 1.76k forks source link

Uncached query call to customAttributeMedadata #8819

Closed damienwebdev closed 2 years ago

damienwebdev commented 3 years ago

General issue

Description:

https://devdocs.magento.com/guides/v2.4/graphql/queries/products.html#ProductFilterInput is strictly wrong and direct one to make an uncached query call to customAttributeMetadata.

Possible solutions:

You should instead prefer https://develop.pwa-venia.com/graphql?query=query+GetFilterInputsForCategory%7B__type%28name%3A%22ProductAttributeFilterInput%22%29%7BinputFields%7Bname+type%7Bname+__typename%7D__typename%7D__typename%7D%7D&operationName=GetFilterInputsForCategory&variables=%7B%7D

like PWA Studio does.

m2-assistant[bot] commented 3 years ago

Hi @damienwebdev. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


dshevtsov commented 2 years ago

@keharper, are you still working on this?

damienwebdev commented 2 years ago

@dshevtsov @keharper this doc is also wrong. The original call should be cached and the other shouldn't be allowed. PWA studio is doing something incorrect to accommodate the poor performance of customAttributeMetadata

damienwebdev commented 2 years ago

cc: @cpartica