How can I pass options such as required: true or default to an Array field?
See the documentation here, it only shows examples like this one:
ArrayOfString: [String]
But I want to be able to do something like this:
ArrayOfString: { type: [String], required: true, default: ['one', 'two', 'three'] }
Maybe thats valid, but there are no examples like that one in the documentation.
Am using it with Mongoose version 2.4.9 and it works with the following syntax