请求 URL 长度较小时返回正常,较大时自动转为 batch 则返回 500 错误。
Status: 500 Malformed pointer. Pointers must be arrays of a classname and an object id.
请求 body 格式:
{
"requests": [
{
"method": "GET",
"path": "/1.1/classes/Entry",
"params": {
"where": {
"tags": {
"$in":[
{
"__type": "Pointer","className":"Tag","objectId":"55c1747160b2ffd79c25fb80"
},
......
]
}
}
}
}
]
}
相关业务代码:
const tagList = tagIdList.map(id => AV.Object.createWithoutData('Tag', id))
const query = new AV.Query('Entry')
query.containedIn('tags', tagList).find()
// Entry.tags 类型为 Relation
-
创建时间
17年2月4日
-
最后回复
17年2月7日
-
2
回复
-
1.2K
浏览
-
2
用户