gpt4 book ai didi

graphql - 如何在datahub graphql中过滤?

转载 作者:行者123 更新时间:2023-12-05 07:09:48 27 4
gpt4 key购买 nike

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

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com