currently i am following this approach
https://github.com/HedCET/torrentzAlert/blob/master/server/publications.js#L36
Hi linto,
Have you try this:
Meteor.methods({
‘yourMethod’: function(obj) {
// obj = {array: ..., otherField1: ..., otherField2: ...}
check(obj, {
array: [String],
otherField1: Date,
otherField2: String
});
}
});
Have a look at: http://docs.meteor.com/#/full/check
Hope it helps, cheers