class ExpandoColumnResolversImpl implements ExpandoColumnResolvers {

    @Override
    public DataFetcher<CompletableFuture<ExpandoColumn>> getExpandoColumnDataFetcher() {
        return environment -> {
            long columnId = getColumnId(environment);
            if (columnId <= 0) {
                return null;
            }

            DataLoader<Long, ExpandoColumn> dataLoader = environment.getDataLoader(ExpandoColumnBatchLoader.KEY);
            return dataLoader.load(columnId);
        };
    }

}