服务端http查询db, 使用orderBy报错
通过接口查询数据: [代码]POST https://api.weixin.qq.com/tcb/databasequery?access_token=ACCESS_TOKEN[代码] 请求: [代码]Array[代码][代码]([代码][代码] [代码][代码][query] => db.collection([代码][代码]'user'[代码][代码]).where({coin: db.command.gt(150)}).field({_id: true,coin: true,point: true,nickName: true,}).orderBy([代码][代码]'coin'[代码][代码],[代码][代码]'desc'[代码][代码]).orderBy([代码][代码]'point'[代码][代码],[代码][代码]'asc'[代码][代码]).skip(0).limit(10).get()[代码][代码])[代码] 返回: [代码]Array[代码][代码]([代码][代码] [代码][代码][errcode] => 0[代码][代码] [代码][代码][errmsg] => Query sort entered in the request is illegal. Please check your request, but [代码][代码]if[代码] [代码]the problem persists, contact us. hint: [[代码]kFMC401202028][代码])[代码] 移除orderBy之后可以正常返回查询数据,orderBy的字段也在集合中