请求 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

我复现一下

很抱歉,我没有复现。请确认下你使用的是最新的 SDK (v2.1.0)。

我将我的完整测试代码私信给你,你可以运行一下。如果可能可希望能提供完整可运行的复现代码。