Lets says we are publishing two employees list’s, how can do we get two props for both lists? The problem is on the line with **??.
/// Example of the a server publication code ///
Meteor.publish('employees ', function () {
return Employees.find({ type: 'current' } );
});
Meteor.publish('oldemployees ', function () {
return Employees.find({ type: 'past' } );
});
// Example of the a clients code ///
export default createContainer( () => {
Meteor.subscribe('employees ');
Meteor.subscribe('oldemployees');
return {
employees: Employees.find({}).fetch(),
**??
oldemployees : Employees.find({}).fetch(),
**??
}
}, EmployeeList);
Can it be done ?
Thank’s