class ExpandoRowResolversImpl implements ExpandoRowResolvers {

    @Override
    public DataFetcher<CompletableFuture<ExpandoRow>> getExpandoRowDataFetcher() {
        return environment -> {
            long rowId = getRowId(environment);
            if (rowId <= 0) {
                return null;
            }

            DataLoader<Long, ExpandoRow> dataLoader = environment.getDataLoader(ExpandoRowBatchLoader.KEY);
            return dataLoader.load(rowId);
        };
    }

}