featureLayer.selectFeatures(queryy,FeatureLayer.SELECTION_NEW);
new esri.geometry.Point(pt, map.spatialReference);
graphic.setGeometry(pt);
//select feature with a static SQL query
featureLayer.selectFeatures(queryy, FeatureLayer.SELECTION_NEW, function(results) {
//use the method callback to dig into the results and update its geometry
results[0].geometry = pt;
//pass the entire array (in this case one feature) back to the server
featureLayer.applyEdits(null, results, null);
//refresh the layer to make sure the edit was successful
featureLayer.refresh();