added default sorting back in.

This commit is contained in:
Bryce Covert
2020-09-01 22:47:03 -07:00
parent 088d78830a
commit abfcb37078
6 changed files with 19 additions and 12 deletions

View File

@@ -9,9 +9,9 @@
(defn raw-graphql-ids [db args]
(let [query (cond-> {:query {:find []
(let [query (cond-> {:query {:find ['?sort-default]
:in ['$ ]
:where []}
:where ['[?e :journal-entry/date ?sort-default]]}
:args [db]}
(:sort args) (add-sorter-fields {"client" ['[?e :journal-entry/client ?c]