class DLFileEntryMetadataResolversImpl implements DLFileEntryMetadataResolvers {

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

            DataLoader<Long, DLFileEntryMetadata> dataLoader = environment.getDataLoader(DLFileEntryMetadataBatchLoader.KEY);
            return dataLoader.load(fileEntryMetadataId);
        };
    }

}