mongoosejs / mongoose-double

Provides Double support for mongoose.js
MIT License
18 stars 13 forks source link

required and default #2

Closed akoskm closed 8 years ago

akoskm commented 8 years ago

Should this plugin support the default options from mongoose? Looks like required is supported https://github.com/aheckmann/mongoose-double/blob/master/test/index.js#L143 but I don't see any tests for default.

jitendrapawar commented 8 years ago

just use type : Double, default : 0 in your schema it works well

akoskm commented 8 years ago

Yes, I figured that out and created a test to prove it #3 . Looks like I forgot to close this issue.