I would like to ask how to do a multiple request to the server in DoneJS way using can-connect. In my previous project with CanJS I can do multiple server request using the pattern below:
return can.when(
Drivers.findAll({}),
Equipments.findAll({}),
Terminals.findAll({})
).then(
( drivers, equipments, terminals ) => {
// Logic here
return mergeData({
drivers: drivers,
equipments: equipments,
terminals: terminals
});
}.bind( this )
);
I can’t seems to figure out on how to do it. Thanks