File 文件如何查询?
我在file中自己定义了若干metaData,希望能通过自定义的字段进行筛选。
目前想到的三种,该如何做?
1、调用REST API,如下 这种方式取会的结果为空。
如果因为 metaData中嵌套的二级字段 无法进行查询,能否在file 中添加自定义一级字段?
superagent
.get(url)
.set(header)
.query({
where: {
metaData: {
"customField": "myCustomField",
}
}
})
.end((error, response) => {
console.log(response.body.results);
})
2、 AV.Query?
3、 AV.File?
-
创建时间
16年2月27日
-
最后回复
16年2月29日
-
2
回复
-
1.6K
浏览
-
2
用户
-
1
链接