mvlyforever
mvlyforever
  • 发布:2024-12-27 23:55
  • 更新:2024-12-27 23:55
  • 阅读:16

支付宝云数据库加了地理索引dbCmd.geoNear报invalid $match

分类:uniCloud
let {  data: list } = await this.db.collection('sys_merch').where({  
                    pos_obj: dbCmd.geoNear({  
                        geometry: point  
                    }),  
                    is_open: true  
                })  
                .limit(1)  
                .get();

stack: "FaasError: invalid $match↵ at new r (/var/task/code/node_modules/@alipay/faas-common-sdk/lib/error.js:1:732)↵
at Function.r.SERVER_ERR (/var/task/code/node_modules/@alipay/faas-common-sdk/lib/error.js:1:1291)↵
at Function.o.handleResponse (/var/task/code/node_modules/@alipay/faas-common-sdk/lib/utils.js:1:1288)↵
at s.<anonymous> (/var/task/code/node_modules/@alipay/faas-common-sdk/lib/Database/Query.js:1:4805)↵
at l (/var/task/code/node_modules/@alipay/faas-common-sdk/lib/Database/Query.js:1:2040)↵
at Object.next (/var/task/code/node_modules/@alipay/faas-common-sdk/lib/Database/Query.js:1:1310)↵
at u (/var/task/code/node_modules/@alipay/faas-common-sdk/lib/Database/Query.js:1:767)↵
at processTicksAndRejections (node:internal/process/task_queues:96:5)"

2024-12-27 23:55 负责人:无 分享
已邀请:

要回复问题请先登录注册