more viewing from UI.

This commit is contained in:
Bryce Covert
2018-08-10 22:52:53 -07:00
parent cbbabb2219
commit b5ab860315
6 changed files with 39 additions and 24 deletions

View File

@@ -3,6 +3,7 @@
[auto-ap.datomic :refer [uri]]))
(defn get-all []
(->> (d/q '[:find (pull ?e [*])
:where [?e :client/name]]
(d/db (d/connect uri)))

View File

@@ -0,0 +1,16 @@
(ns auto-ap.datomic.vendors
(:require [datomic.api :as d]
[auto-ap.datomic :refer [uri]]))
(defn get-all []
(->> (d/q '[:find (pull ?e [*])
:where [?e :vendor/name]]
(d/db (d/connect uri)))
(map first)
#_(map (fn [c]
(update c :client/bank-accounts
(fn [bas]
(map (fn [ba]
(update ba :bank-account/type :db/ident ))
bas)))))))