Just to clarify the "final" out come of this project. I ended up using the mergedGeometry rather than the initial array, that way it would just be a single Polyline rather than a series of them.
Thanks for all the help Jake and Kelly!
var directions = new esri.dijit.Directions({
map: map,
geocoderOptions: options
},"dir");
directions.startup();
directions.deactivate();
var featureLayerrr = new FeatureLayer("Feature Layer")
on(directions, "directions-finish", function(e){
var directions = e.result.routeResults[0].directions;
directionFeatures = directions.features;
queryyy = new Query("Query Layer");
queryyy.where = "Driver = '" + "t10'";
console.log(queryyy.results);
var graphiccc = new Graphic(directions.mergedGeometry, null, null);
//Record-Selector-Magiger
featureLayerrr.selectFeatures(queryyy, FeatureLayer.SELECTION_NEW, function(results) {
//Update the query reults \/ with the geometry \/
results[0].geometry = directions.mergedGeometry;
// Update the Layer \/
featureLayerrr.applyEdits(null, results, null);
//refresh the layer to make sure the edit was successful
featureLayerrr.refresh();
});
console.log(" Fire on everything!");
});