Reputation: 26144
I am using this package to validate data before going into a database collection. One field in my collection must contain an array of strings - how can I validate this?
Upvotes: 0
Views: 269
Reputation: 19544
YourCollection.attachSchema(new SimpleSchema({
...
yourArray: {type: [String]},
});
Upvotes: 2