Patrick Bailey hit a grand slam and Camilo Doval escaped a bases loaded ninth-inning jam as the Giants rallied to beat the Mets on Friday night.