"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.buildTree = buildTree;
var _utils = require("../../utils");
function buildTree(idProp, parentIdProp) {
  return function (pipeline) {
    return pipeline.mapDataSource(function (rows) {
      return (0, _utils.buildTree)(idProp, parentIdProp, rows);
    });
  };
}