   [slice definition]
   (let [sdef (get-in definition [:slices (keyword slice)])
         dataset (:database definition)
-        
+
         from-collection (:slice sdef)
         to-collection slice
         to-zip-fn (field-zip-fn sdef)

                                         :aggregations aggregations
                                         :filter filter
                                         :slicedef sdef})
        
        finalize-reduce-fn (fn [obj-name fields]
                             (reduce (fn [acc field]
                                       (merge acc
                                              {(name (to-zip-fn field))
                                               (js*
                                                (elimNaN (aget (clj obj-name)
                                                               (clj (name field)))))}))
                                     {} fields))
        finalize-dims (finalize-reduce-fn :key dimensions)
        finalize-aggs (finalize-reduce-fn :value (keys aggregations))

    (apply await agents)))

(defmulti load-slice
          (fn [slice _ definition]
            (get-in definition [:slices (keyword slice) :type])))

(defmethod load-slice "table"
           [slice concepts definition]
  (let [sdef (get-in definition [:slices (keyword slice)])
        table (:table sdef)
        references (:references sdef)
