Omar Narváez's RBI single sealed the New York Mets' 4-3 victory over Giants which snapped their five-game losing streak.