This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-31
Channels
- # aleph (9)
- # bangalore-clj (1)
- # beginners (115)
- # cider (16)
- # clara (20)
- # cljs-dev (47)
- # cljsrn (50)
- # clojure (70)
- # clojure-dusseldorf (2)
- # clojure-italy (16)
- # clojure-sanfrancisco (1)
- # clojure-spec (9)
- # clojure-uk (37)
- # clojurescript (132)
- # cursive (21)
- # datomic (36)
- # dirac (53)
- # fulcro (34)
- # graphql (6)
- # hoplon (96)
- # jobs (2)
- # juxt (2)
- # keechma (2)
- # leiningen (5)
- # off-topic (3)
- # om (2)
- # om-next (3)
- # parinfer (3)
- # re-frame (17)
- # remote-jobs (1)
- # shadow-cljs (57)
- # specter (12)
- # sql (43)
- # unrepl (11)
- # yada (5)
I have a problem getting subscriptions to work, right now the schema compiles, but I don’t hit the code supplied by util/attach-streamers. I have a definition in my schema like
:subscriptions
{
:stream_transactions
{:type :Transaction
:description "Get transactions as they happen, with optional filtering"
:args {:iban {:type String
:description "optional filter on matching iban"}
:min_amount {:type Int
:description "optional filter based on transferred amount"}
:direction {:type :dtype
:description "optional filter on DEBIT or CREDIT"}}
:stream :stream-transactions}}
replaced in the stream map by a function:
(defn stream-map
[component]
(let [db (:db component)]
{:stream-transactions (stream-transactions db)
}))