class EmailAddressResolversImpl implements EmailAddressResolvers {

    @Override
    public DataFetcher<EmailAddress> deleteEmailAddressDataFetcher() {
        return environment -> {
            long emailAddressId = util.getLongArg(environment, "emailAddressId");

            return emailaddressLocalService.deleteEmailAddress(emailAddressId);
        };
    }

}