似乎我无法弄清楚如何查询Weaviate并过滤掉不需要的对象。 我已阅读:https://graphql.org/learn/queries/#arguments
我认为这将转化为我使用邮递员的测试:
collection.updateMany({ _id: { $in: [123, 456] } }, {
$push: {
bizs: {
"_id": "",
"name": "new"
}
}
})
我收到的结果:
{
"query": "{
Get {
Things {
Technique(name: "some name of technique in the weaviate") { name, uuid }
}
}
}"
}
这应该如何工作?
答案 0 :(得分:2)
要在Weaviate中过滤出对象,必须使用“ where”过滤器。在这里看看:https://www.semi.technology/documentation/weaviate/current/query-data/filters.html#where-filter。
我认为您在GrapiQL中的查询看起来像这样:
{“查询”:“ {获取{事物{技术(其中:{路径:[“名称”], 运算符:等于,valueSting:“ weaviate中的某种技术名称”} ){名称,uuid}}}}“}
对于其余POST请求中的JSON正文,它看起来像这样(转义双引号):
{“查询”:“ {获取{事物{技术(其中:{路径:[\“名称\”], 运算符:等于,值设置:\“ weaviate中的一些技术名称\”} ){名称,uuid}}}}“}