Filtering products using custom attributes in magento2 with graphql causes error: Field is not defined by type ProductAttributeFilterInput

Filtering products using custom attributes in magento2 with graphql causes error: Field is not defined by type ProductAttributeFilterInput

我正在尝试使用官方文档中提到的 graphql 查询使用自定义属性过滤从我的后端 magento2 检索到的产品:[https://devdocs.magento.com/guides/v2.4/[= 27=.htm] 使用 attribute_code: "color" 作为自定义属性存在,但在邮递员中出现以下错误:"Field "color" is not defined by type ProductAttributeFilterInput."

这是我的查询:`{ 产品(过滤器:{

 color: { eq: "4677" } }) {
total_count
items {
  name
  sku
  price
}

} }`

我正在使用 magento 2.3.4

error in postman

如果有人能帮助我,我将不胜感激

就错误消息而言,我可以理解为颜色字段未在 ProductAttributeFilterInput 中声明。请再次检查 schema.graphqls 文件并确保正确声明了所需的字段