Mongoose: What about decimal ?

Created on 1 Dec 2016  路  9Comments  路  Source: Automattic/mongoose

Decimal BSON type has been introduced in Mongo 3.4 therefore, it would be convenient that this type would be also available within mongoose.

For more informations => https://docs.mongodb.com/manual/tutorial/model-monetary-data/#numeric-decimal

I'm quickly checking how long it would take me and checking if I can put that on my roadmap

Most helpful comment

Yep definitely a major priority, will release soon :+1:

All 9 comments

Decimal Bson type is one of important feature in Mongo 3.4. Hope that available within mongoose as soon as possible. Thanks

Yup, let's see what the people here say :)

Yep definitely a major priority, will release soon :+1:

@vkarpov15 wasn't expecting less from your side, always reactive! 鈿★笍

In the 5.0.8 docs I still just find Number as numeric type.

Does the fixed label assigned to this issue not mean that a decimal type was implemented?

@marcelh-gh yup it has been. You can check the above commit reference: 61d665c

Documentation doesn't seem up to date, I suggest you open a new issue about it.

Strangely it was in the previous docs.

@YouriT thanks a lot for the quick answer. Awesome!

@YouriT so, there is a Decimal128 type. What about integer/ long? I didn't find anything in the old docs...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CodeurSauvage picture CodeurSauvage  路  3Comments

ghost picture ghost  路  3Comments

lukasz-zak picture lukasz-zak  路  3Comments

efkan picture efkan  路  3Comments

adamreisnz picture adamreisnz  路  3Comments