diff --git a/lib/internal/Magento/Framework/GraphQl/Config/Element/Field.php b/lib/internal/Magento/Framework/GraphQl/Config/Element/Field.php index 0b1b8ae3da31b..af4a3f0dd8ba0 100644 --- a/lib/internal/Magento/Framework/GraphQl/Config/Element/Field.php +++ b/lib/internal/Magento/Framework/GraphQl/Config/Element/Field.php @@ -183,4 +183,12 @@ public function getDeprecated() : array { return $this->deprecated; } + + /** + * Disable caching for the field + */ + public function disableCaching(): void + { + $this->cache = []; + } }