【发布时间】:2023-03-23 04:01:02
【问题描述】:
我刚刚升级到 Sails.js 1.0,我的装饰器模式停止工作。
这就是我所拥有的:
let model = Model.find()
model
.where({
'nested.property': {
'>': 1
}
})
model.exec()
给我:
无法使用提供的
where子句。无法过滤nested.property:nested.property不是一个有效的名称 水线中的属性。即使这个模型 (model) 声明schema: false,这是不允许的。
我的数据库是 MongoDB。
【问题讨论】:
标签: javascript mongodb sails.js waterline