graphql - 如何在datahub graphql中过滤?

标签 graphql pimcore-v5 ads-data-hub

我正在使用 data hub 函数和 GraphQL 来为外部系统获取数据,但是我在使用嵌套对象的过滤器时遇到了问题。

以文档为例,在演示的产品端点中,我进行了此调用,我得到了所有名为 E-Type 的汽车。

{
    getCarListing(filter: "{'name' : 'E-Type'}"){
        edges{
            node{
                name
                    manufacturer{
                        … on object_Manufacturer{
                        name
                    }
                }
            }
        }
    }
}

如何过滤制造商名称?我在想这个过滤器:

filter : "{'manufacturer' : {'name' : 'Jaguar'}}". 

这会返回 column_name name not found 响应。

谁能帮我解决这个问题?

最佳答案

在此工单中找到回复:https://github.com/pimcore/data-hub/issues/224#issuecomment-628514018

他们在这里声明,PimCore 目前不支持此功能。也许以后会支持。

关于graphql - 如何在datahub graphql中过滤?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61445019/

相关文章:

python - 聚合 Graphite 烯/django 查询中的字段

django - Graphite 烯错误消息

javascript - 从 .graphql 文件导入构建架构

node.js - 主机 : localhost. 不在证书的替代名称中

docker - 在Docker环境中使用pimcore