1 INTRODUCTION
2 DATA AND SAMPLE PROPERTIES
2.1 The VANDELS sample
2.2 MOSFIRE Observations
2.3 KMOS Observations
2.4 Final Galaxy Sample
2.5 Measurements and derived quantities
2.6 Composite Spectra
3 DETERMINING GAS-PHASE AND STELLAR METALLICITIES
3.1 Determination of gas-phase metallicity
3.2 Determination of stellar metallicity
4 THE STELLAR AND GAS-PHASE MASS-METALLICITY RELATIONS
4.1 The gas-phase mass-metallicity relation
4.2 The stellar mass-metallicity relation
4.3 Enhanced O/Fe abundance ratios
5 CONSTRAINING THE MASS-DEPENDENCE OF GALAXY OUTFLOWS
5.1 An analytical chemical evolution model
5.2 Constraints on the $\eta{\cdot}M_{\star}$ relation
6 CONCLUSIONS