我在模式(简单模式)数字数据类型,但我无法储存使用collections2当浮点数是:如何使用Collections2在Meteor(JS)中存储浮点值?
Schema.Coordinates = new SimpleSchema({ lng: { type: Number, min: -180.0, max: 180.0 }, lat: { type: Number, min: -90.0, max: 90.0 } });
当我尝试插入其他任何东西比一个整数(与xxxx.0任何东西),我得到验证错误:
W20150222-20:24:23.523(-8)? (STDERR) Error: Lng must be an integer