【发布时间】:2015-04-09 05:34:51
【问题描述】:
查询结果有问题,我想比较字段的值,与其他系统值相乘和比较。
是这样的:
var servicePriceProportion = 0.7;
var serviceMaxPrice = 1000;
CollectionX.find({
... other conditions,
$where: function(){
return (this.Data.investmentMax * servicePriceProportion < serviceMaxPrice);
}
});
我也试过了。但没有用:
$where: function(){
return (this.Data.investmentMax != this.Data.investmentMax);
}
$where 条件根本不起作用。
【问题讨论】:
标签: mongodb meteor mongodb-query