class CountryResolversImpl implements CountryResolvers {

    @Override
    public DataFetcher<List<Country>> getCountriesDataFetcher() {
        return environment -> {
            boolean active = util.getBooleanArg(environment, "active", true);

            return countryService.getCountries(active);
        };
    }

}