I am using MongoDB with the native node driver and need to accurately store numbers that may be larger than the int maximum 2147483647. I will need to be able to increment t
You can now do this in Mongoose with the mongoose-long plug-in.
require('mongoose-long')(mongoose); var SchemaTypes = mongoose.Schema.Types; var schema = new Schema({ ... usedBandwidth: {type: SchemaTypes.Long, min: 0, default: 0} });