 
     (= action :insert) (deep-merge* db result)
 
-    :else (assoc-in db path result)))
+    :else (deep-merge* db result)))
 
 (def incoming-interceptors
   {:macro     macro-incoming-interceptors


(defn client-converter [type]
  (fn [things]
    (timbre/debug things)
    (reduce
     (fn [accu v]
       (update accu type assoc (:id v) (client-trans type (utils/with-ns v (namespace type)))))

   ping-read])

(defn make-new-db [db {:keys [result action path errors namespace]}]
  (cond
    (seq errors) (assoc db :db/errors errors)

