Abundance measurements of H2O and carbon-bearing species in the atmosphere of WASP-127b confirm its supersolar metallicity