class UserGroupResolversImpl implements UserGroupResolvers {

    @Override
    public DataFetcher<UserGroup> deleteUserGroupDataFetcher() {
        return environment -> {
            long userGroupId = util.getLongArg(environment, "userGroupId");

            return usergroupLocalService.deleteUserGroup(userGroupId);
        };
    }

}