class AssetTagResolversImpl implements AssetTagResolvers {

    @Override
    public DataFetcher<AssetTag> updateAssetTagDataFetcher() {
        return environment -> {
            long userId = util.getLongArg(environment, "userId", util.getDefaultUserId());
            long tagId = util.getLongArg(environment, "tagId");
            String name = util.getStringArg(environment, "name");
            ServiceContext serviceContext = new ServiceContext();

            return assetTagLocalService.updateTag(
                    userId,
                    tagId,
                    name,
                    serviceContext
            );
        };
    }

}