Closed thearabbit closed 5 years ago
What do you mean by "support on Client Code"?
Can use it on Client code
// client code
import {replaceType, ....} from .....
.............
let doc = {
amount : 123.456
}
doc = replaceTypes(doc, replaceMeteorAtomWithDecimalJS)
Meteor.call('methodName', doc, (error, result)=>{
.............
})
Could all of retype
Minimongo on client does not know about Mongo.Decimal128 type
But I would like to convert normal document
let doc = {
amount : 123.456
amount2: 6543.21
}
doc = replaceTypes(doc, replaceNumberAtomWithDecimalJS)
Instead of
let doc = {
amount : Decimal(123.456)
amount2: Decimal(6543.21)
}
Ok, I will add replaceNumberWithDecimal, replaceDecimalWithNumber?
published version 0.0.4
Very thanks again.
I would like to request you the
Meteor/Number - DecimalJS
optionsEx:
And support on
Client Code