This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-20
Channels
- # announcements (1)
- # babashka (32)
- # beginners (100)
- # cider (43)
- # clj-kondo (4)
- # cljdoc (3)
- # cljs-dev (5)
- # cljsjs (2)
- # cljsrn (22)
- # clojure (170)
- # clojure-australia (27)
- # clojure-europe (25)
- # clojure-nl (3)
- # clojure-uk (76)
- # clojurescript (127)
- # conjure (14)
- # core-matrix (1)
- # cursive (9)
- # datomic (6)
- # defnpodcast (1)
- # emacs (32)
- # events (1)
- # expound (77)
- # fulcro (30)
- # graalvm (21)
- # graalvm-mobile (30)
- # helix (4)
- # honeysql (1)
- # hyperfiddle (1)
- # jackdaw (8)
- # jobs (6)
- # kaocha (1)
- # leiningen (4)
- # lsp (16)
- # malli (46)
- # meander (4)
- # off-topic (19)
- # pathom (10)
- # podcasts-discuss (1)
- # portal (2)
- # re-frame (7)
- # reagent (2)
- # releases (1)
- # remote-jobs (11)
- # rewrite-clj (8)
- # shadow-cljs (9)
- # tools-deps (243)
- # vim (1)
I would like to make a data query from the front end to the backend where;
• data A is resolved,
• then based on A, derive a boolean value (same as the condition in a if
) which will branch between either resolve data B or data C. (B and C are of totally different types)
Is it possible to do something like that inside 1 EQL query?
I found something close, I will try it tomorrow. https://pathom3.wsscode.com/docs/eql#union-queries
optional inputs is another way to handle that
+1 on optional input that is how I avoided a union query in fulcro https://clojurians.slack.com/archives/C68M60S4F/p1665147250627689?thread_ts=1665146697.279039&cid=C68M60S4F
hello all, how do I solve this?
(let [data "18/07/2021"]
(geral/parser
configuration
['{(:cursos-alura {:dt-inicio data :dt-fim data}) [:email :termino :curso :esforco :nome]}]))
I got dt-inicio
and dt-fim
nil in resolver?The issue is that you’re using '
instead of backquote. It should look like:
[`{(:cursos-alura {:dt-inicio ~data :dt-fim ~data}) [:email :termino :curso :esforco :nome]}]
Here’s a SO question with a better explanation 🙂 https://stackoverflow.com/questions/17800917/clojure-difference-between-apostrophe-and-backtick