mongoosejs / mongoose-double

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

feat: add support for value comparisons #9

Closed w33ble closed 5 years ago

w33ble commented 5 years ago

Closes https://github.com/mongoosejs/mongoose-double/issues/8

This PR adds support for $lt, $lte, $gt, and $gte. It does this by adding new $conditionalHandlers to the instance and delegating to the handleSingle and handleArray.

Tried this locally and it worked as expected. Test are included.

w33ble commented 5 years ago

Sure thing. Thanks for cutting another release already 👍