Merge pull request #7 from skoofer/master

Adding code field on the country resolver
This commit is contained in:
Trevor Blades
2019-09-26 08:38:22 -07:00
committed by GitHub

View File

@@ -42,7 +42,11 @@ export default {
}));
},
country(parent, {code}) {
return countries[code];
const country = countries[code];
return {
...country,
code
};
},
countries() {
return Object.entries(countries).map(([code, country]) => ({