suppose i have following publications…
Meteor.publish('twoArg', function(arg1, arg2) {
var selectors = {
// whatever
};
var options = {
// whatever
};
return myCollection.find(selectors,options);
});
Meteor.publish('onlyArg1', function(arg1) {
var selectors = {
// whatever
};
var options = {
// whatever
};
return myCollection.find(selectors,options);
});
Meteor.publish('onlyArg2', function(arg2) {
var selectors = {
// whatever
};
var options = {
// whatever
};
return myCollection.find(selectors,options);
});
i need to pass null argument on subscription… this is my fail attempts,
Meteor.subscribe('twoArg', arg1, arg2); // return data
Meteor.subscribe('twoArg', arg1, null); // return empty data
Meteor.subscribe('onlyArg1', arg1); // return data
Meteor.subscribe('twoArg', null, arg2); // return empty data
Meteor.subscribe('onlyArg2', arg2); // return data
does it possible to pass null argument on subscription…??
thank You,