class AssetTagResolversImpl implements AssetTagResolvers {

    @Override
    public DataFetcher<CompletableFuture<AssetTag>> getAssetTagDataFetcher() {
        return environment -> {
            long tagId = util.getLongArg(environment, "tagId");
            if (tagId <= 0) {
                return null;
            }

            DataLoader<Long, AssetTag> dataLoader = environment.getDataLoader(AssetTagBatchLoader.KEY);
            return dataLoader.load(tagId);
        };
    }

}