mongoosejs / mongoose-double

Provides Double support for mongoose.js
MIT License
18 stars 13 forks source link

Add support for value comparisons #8

Closed w33ble closed 5 years ago

w33ble commented 5 years ago

Currently, this type can't use any of the comparison types $lt, $lte, $gt, or $gte. Adding them should be pretty simple, it just requires casting the values to numbers.

mongoose-long supports it, there's no real reason this type couldn't do the same thing.