I am using SailsJS with MongoDB and model is having type number as below:
attributes: {
mobile_no: {
type: 'number'
}
}
So when I insert with API it is working perfectly up to 10 numeric character length.
For more than 10+ numeric character length my document's field is automatically gets converted to float and adds decimal points something like 12345678902.0
but I don't want that because mobile_no
field can have more than 10 characters.