more forgiving matching.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
(:require [datomic.api :as d]
|
(:require [datomic.api :as d]
|
||||||
[auto-ap.datomic :refer [uri merge-query apply-sort-2 apply-pagination add-sorter-field]]
|
[auto-ap.datomic :refer [uri merge-query apply-sort-2 apply-pagination add-sorter-field]]
|
||||||
[auto-ap.graphql.utils :refer [limited-clients]]
|
[auto-ap.graphql.utils :refer [limited-clients]]
|
||||||
|
[auto-ap.utils :refer [dollars=]]
|
||||||
[clojure.set :refer [rename-keys]]
|
[clojure.set :refer [rename-keys]]
|
||||||
[clj-time.coerce :as c]))
|
[clj-time.coerce :as c]))
|
||||||
|
|
||||||
@@ -78,7 +79,8 @@
|
|||||||
|
|
||||||
(:amount args)
|
(:amount args)
|
||||||
(merge-query {:query {:in ['?amount]
|
(merge-query {:query {:in ['?amount]
|
||||||
:where ['[?e :payment/amount ?amount]]}
|
:where ['[?e :payment/amount ?transaction-amount]
|
||||||
|
'[(auto-ap.utils/dollars= ?transaction-amount ?amount)]]}
|
||||||
:args [(:amount args)]})
|
:args [(:amount args)]})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user