class AssetLinkResolversImpl implements AssetLinkResolvers {

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

            DataLoader<Long, AssetLink> dataLoader = environment.getDataLoader(AssetLinkBatchLoader.KEY);
            return dataLoader.load(linkId);
        };
    }

}