Changelog
[0.8.2] - 2018-01-22
Changelog
[0.8.1] - 2018-01-12
Changelog
[0.8.0] - 2018-01-12
{
nested: {
stuff: {
type: String,
required: true,
},
},
array: {
type: [],
},
arrayOfString: {
type: [String],
},
arrayOfNumber: {
type: [Number],
},
arrayOfDate: {
type: [Date],
},
arrayOfBuffer: {
type: [Buffer],
},
arrayOfBoolean: {
type: [Boolean],
},
arrayOfMixed: {
type: [Object],
},
arrayOfId: {
type: [Schema.types().ObjectId],
required: true,
},
arrayOfNested: [
{
stuff: {
type: String,
required: true,
},
test: {
type: String,
maxlength: 5,
},
custom: {
type: String,
validate: payload => {
return payload.arrayOfNested[2].custom === 'yes';
},
},
},
],
arrayOfArray: {
type: [[]],
},
arrayOfArrayOfNumber: {
type: [[Number]],
}
}
```
Changelog
[0.7.0] - 2018-01-12
Changelog
[0.6.2] - 2018-01-03
Changelog
[0.6.0] - 2018-01-02
Changelog
[0.5.0] - 2017-12-27