calculates profit and loss.

This commit is contained in:
Bryce Covert
2019-04-23 09:53:14 -07:00
parent 45165d9e10
commit 5317310cc7
3 changed files with 70 additions and 20 deletions

View File

@@ -17,7 +17,7 @@
(keyword "transaction" sort-by)))
(defn raw-graphql-ids [db args]
(println args)
(let [query (cond-> {:query {:find []
:in ['$ ]
:where []}
@@ -67,7 +67,6 @@
(defn get-graphql [args]
(let [db (d/db (d/connect uri))
{ids-to-retrieve :ids matching-count :count} (raw-graphql-ids db args)]
[(->> (graphql-results ids-to-retrieve db args))
matching-count]))