Meteor-Community-Packages / meteor-collection2

A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
https://packosphere.com/aldeed/collection2
MIT License
1.02k stars 108 forks source link

How to use `NumberDecimal` of `Mongo`? #393

Closed thearabbit closed 5 years ago

thearabbit commented 5 years ago

I would like to use NumberDecimal of Mongo Datatype. Please help me.

aldeed commented 5 years ago

Validating this would still just use Number type in the SimpleSchema. It will only be possible to insert that as NumberDecimal type if Meteor collection package supports that. I don't know if it does yet, but that's a different package.

thearabbit commented 5 years ago

thands @aldeed 💯 In meteor atmosphere, I see mongo-decimal (https://atmospherejs.com/meteor/mongo-decimal)