db.collection('User')
.aggregate()
.match({
_ct: _.gt(new Date('2026-05-01')),
})
.project({name: 1})
.sort({_ct: 1})
.limit(100)
.end()
执行报错:加载 “tcbRunCommands” 失败: Error: InvalidParameter, Check request parameter fail. Please check your request, but if the problem cannot be solved, contact us.

后端SQL语句要用serverDate。不能用js date
小程序云开发如果无法在开发控制台直接执行复杂查询操作很不方便呀
另外,也因为,共享过来的云环境,开发者工具中也不支持开启云函数本地调试,找问题只能靠写日志:(