class CountryResolversImpl implements CountryResolvers {

    @Override
    public DataFetcher<Country> createCountryDataFetcher() {
        return environment -> {
            String name = util.getStringArg(environment, "name");
            String a2 = util.getStringArg(environment, "a2");
            String a3 = util.getStringArg(environment, "a3");
            String number = util.getStringArg(environment, "number");
            String idd = util.getStringArg(environment, "idd");
            boolean active = util.getBooleanArg(environment, "active");

            return countryService.addCountry(
                    name,
                    a2,
                    a3,
                    number,
                    idd,
                    active);
        };
    }

}