         (reset! account-realm (open-migrated-realm address account/schemas))
         (handler nil)))))
 
-; realm functions
+;; realm functions
 
 (defn and-query [queries]
   (str/join " and " queries))

(defn single [result]
  (aget result 0))

(def single-clj
  (comp first js-object->clj))

(defn- get-schema-by-name [opts]
  (->> opts


(def reader (transit/reader :json))

(defn- internal-convert [js-object]
  (->> js-object
       (.stringify js/JSON)
       (transit/read reader)
       walk/keywordize-keys))

(defn js-object->clj
  "Converts any js type/object into a map recursively
  Performs 5 times better than iterating over the object keys
  and that would require special care for collections"
  [js-object]
  (let [o (internal-convert js-object)]
    (if (map? o) (map->vec o) o)))

(defn fix-map->vec
  "Takes a map m and a keyword k
