我正在使用 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/