class AddressResolversImpl implements AddressResolvers {

    @Override
    public DataFetcher<Address> deleteAddressDataFetcher() {
        return environment -> {
            long addressId = util.getLongArg(environment, "addressId");

            return addressLocalService.deleteAddress(addressId);
        };
    }

}