数据库API,db.collection.orderBy函数的fieldPath参数不可以是汉字吗?
因为数据库里的字段名已经使用汉字了,并且试验过where用汉字做条件没问题,但orderBy不行了(注意:不是数据库里,在数据库后端是可以的,但云函数不行),如下: [代码]db.collection(event.table).where([代码][代码] [代码][代码]event.condition[代码][代码] [代码][代码]).orderBy([代码][代码]"上报时间"[代码][代码], [代码][代码]"desc"[代码][代码]).[代码][代码]get[代码][代码]()[代码]提示的是: [代码]VM10080:[代码][代码]1[代码] [代码]BI-RP-response-[代码][代码]96[代码][代码]-[云函数] [generalDB] 调用失败 Error: errCode: -[代码][代码]404011[代码] [代码]cloud [代码][代码]function[代码] [代码]execution error | errMsg: cloud.callFunction:fail requestID 7fb89a69-1be2-11ea-a17f-52540025df0e, cloud [代码][代码]function[代码] [代码]service error code -[代码][代码]504002[代码][代码], error message [代码][代码]Error[代码][代码] [代码][代码]at Function.isFieldPath (:[代码][代码]24596[代码][代码]/[代码][代码]var[代码][代码]/user/node…onjs/validate.js:[代码][代码]33[代码][代码])[代码][代码] [代码][代码]at Query.orderBy (:[代码][代码]24596[代码][代码]/[代码][代码]var[代码][代码]/user/node…mmonjs/query.js:[代码][代码]130[代码][代码])[代码][代码] [代码][代码]at Query.module.exports../src/api/database/api/database/query.ts.Query.orderBy (:[代码][代码]24596[代码][代码]/[代码][代码]var[代码][代码]/user/node…r-sdk/index.js:[代码][代码]1725[代码][代码])[代码][代码] [代码][代码]at EventHandler.exports.main [[代码][代码]as[代码] [代码]realHandler] (:[代码][代码]24596[代码][代码]/[代码][代码]var[代码][代码]/user/index.js:[代码][代码]20[代码][代码])[代码][代码] [代码][代码]at EventHandler.handle (:[代码][代码]24596[代码][代码]/[代码][代码]var[代码][代码]/runtime/n…e8/bootstrap.js:[代码][代码]405[代码][代码])[代码][代码] [代码][代码]at invoke (:[代码][代码]24596[代码][代码]/[代码][代码]var[代码][代码]/runtime/n…e8/bootstrap.js:[代码][代码]208[代码][代码])[代码][代码] [代码][代码]at Timeout.setTimeout [[代码][代码]as[代码] [代码]_onTimeout] (:[代码][代码]24596[代码][代码]/[代码][代码]var[代码][代码]/runtime/n…e8/bootstrap.js:[代码][代码]137[代码][代码])[代码][代码] [代码][代码]at ontimeout (:[代码][代码]24596[代码][代码]/appservice/timers.js:[代码][代码]475[代码][代码])[代码][代码] [代码][代码]at tryOnTimeout (:[代码][代码]24596[代码][代码]/appservice/timers.js:[代码][代码]310[代码][代码])[代码][代码] [代码][代码]at Timer.listOnTimeout (:[代码][代码]24596[代码][代码]/appservice/timers.js:[代码][代码]270[代码][代码]); at cloud.callFunction api; [代码][代码] [代码][代码]at [代码][代码]new[代码] [代码]u (VM10096 WAService.js:[代码][代码]1[代码][代码])[代码][代码] [代码][代码]at d (VM10096 WAService.js:[代码][代码]1[代码][代码])[代码][代码] [代码][代码]at f (VM10096 WAService.js:[代码][代码]1[代码][代码])[代码][代码] [代码][代码]at Function.success (VM10096 WAService.js:[代码][代码]1[代码][代码])[代码][代码] [代码][代码]at VM10096 WAService.js:[代码][代码]1[代码][代码] [代码][代码]at C (VM10096 WAService.js:[代码][代码]1[代码][代码])[代码][代码] [代码][代码]at i.<anonymous> (VM10096 WAService.js:[代码][代码]1[代码][代码])[代码][代码] [代码][代码]at i.emit (VM10096 WAService.js:[代码][代码]1[代码][代码])[代码][代码] [代码][代码]at Xi (VM10096 WAService.js:[代码][代码]1[代码][代码])[代码][代码] [代码][代码]at VM10096 WAService.js:[代码][代码]1[代码]我知道应该尽量用英文, 我只是想知道的是fieldPath是一个什么样的对象,为什么不叫field,应该怎样构造出来,是否能够通过其他方式看到其他的fieldPath?