Try this. The code just presents an idea, and assumes you are using the non-AMD style. Otherwise, change it accordingly. var geoms = dojo.array(graphics, function(aGraphic) { return aGraphic.geometry; });
geomService.project(geoms, function(geometries) {
onProjectCompleteHandler(geometries, graphics);
});
function onProjectCompleteHandler(geometries, graphics) {
dojo.array(graphics, function(aGraphic, idx) {
aGraphic.setGeometry(geometries[idx]);
});
// graphics should contain the projected geometries, and their attributes.
}