我似乎不知道如何查询Weaviate并过滤掉不想要的对象。我读过:https://graphql.org/learn/queries/#arguments
我想这会转化成我用邮递员做的测试:
{
"query": "{
Get {
Things {
Technique(name: "some name of technique in the weaviate") { name, uuid }
}
}
}"
} 这是我收到的结果:
{
"code": 400,
"message": "parsing body body from \"\" failed, because invalid character 's' after object key:value pair"
}这该怎么做呢?
发布于 2020-01-30 07:20:09
要筛选出Weaviate中的对象,必须使用"where“过滤器。看看这里:https://www.semi.technology/documentation/weaviate/current/query-data/filters.html#where-filter。
我认为您在GrapiQL中的查询如下所示:
{“查询”:"{ Get { Things { technique (其中:{ path:" name ",运算符: valueSting:“weaviate中的某个技术名称”}){ name,uuid }}}
对于rest请求中的JSON主体,它应该如下所示(转义双引号):
{“查询”:"{ Get { Things { technique (其中:{ path:\" name \",运算符:query,valueSting:\“weaviate}}}中的某个技术名称){ name,uuid }} }
https://stackoverflow.com/questions/59980524
复制相似问题