class ExpandoColumnResolversImpl implements ExpandoColumnResolvers {

    @Override
    public DataFetcher<ExpandoColumn> updateExpandoColumnDataFetcher() {
        return environment -> {
            long columnId = util.getLongArg(environment, "columnId");
            String name = util.getStringArg(environment, "name");
            int type = util.getIntArg(environment, "type", ExpandoColumnConstants.STRING);

            return expandoColumnLocalService.updateColumn(
                    columnId,
                    name,
                    type,
                    null);
        };
    }

}