JoeTidee
JoeTidee

Reputation: 26144

Simple Schema Meteor - Array Validation

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

Answers (1)

Hubert OG
Hubert OG

Reputation: 19544

YourCollection.attachSchema(new SimpleSchema({
  ...
  yourArray: {type: [String]},
});

Upvotes: 2

Related Questions