class DLFileShortcutResolversImpl implements DLFileShortcutResolvers {

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

            DataLoader<Long, DLFileShortcut> dataLoader = environment.getDataLoader(DLFileShortcutBatchLoader.KEY);
            return dataLoader.load(fileShortcutId);
        };
    }

}