class MBCategoryResolversImpl implements MBCategoryResolvers {

    @Override
    public DataFetcher<MBCategory> updateMBCategoryDataFetcher() {
        return environment -> {
            long categoryId = util.getLongArg(environment, "categoryId");
            long parentCategoryId = util.getLongArg(environment, "parentCategoryId");
            String name = util.getStringArg(environment, "name");
            String description = util.getStringArg(environment, "description");
            ServiceContext serviceContext = new ServiceContext();

            return mbCategoryLocalService.updateCategory(
                    categoryId,
                    parentCategoryId,
                    name,
                    description,
                    MBCategoryConstants.DEFAULT_DISPLAY_STYLE,
                    null,
                    null,
                    null,
                    0,
                    false,
                    null,
                    null,
                    0,
                    null,
                    false,
                    null,
                    0,
                    false,
                    null,
                    null,
                    false,
                    false,
                    false,
                    serviceContext);
        };
    }

}