This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-09
Channels
- # announcements (5)
- # babashka (1)
- # beginners (116)
- # calva (139)
- # cider (11)
- # clara (2)
- # clj-kondo (13)
- # clojure (247)
- # clojure-dev (18)
- # clojure-europe (5)
- # clojure-france (2)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-spec (24)
- # clojure-uk (34)
- # clojurescript (41)
- # cursive (11)
- # data-science (2)
- # datomic (33)
- # emacs (10)
- # events (3)
- # fulcro (134)
- # graphql (9)
- # jackdaw (3)
- # jobs (1)
- # joker (20)
- # kaocha (3)
- # leiningen (7)
- # luminus (2)
- # malli (3)
- # music (1)
- # pedestal (7)
- # re-frame (25)
- # remote-jobs (7)
- # ring (7)
- # shadow-cljs (85)
- # spacemacs (13)
- # testing (2)
- # tools-deps (60)
- # xtdb (11)
- # yada (7)
Hi, here’s a beginner question: How do I join and get the data for the offer and the paintings? Obviously datalog queries are very strange to me. Thanks!
I'm pretty sure that everyone finds them very strange initially 😀 Can you manually craft a sample of exactly what you want the results to look like?
#{[:offer/twenty “20% off” :painting/imagine “Imagine”] [:offer/twenty “20% off” :painting/flipando “Flipando”]}
and thanks @U899JBRPF!
@U0GE6JTKK hey again, having looked at this in detail now I think you may simply have a typo in (def painting-imagine
...shouldn't :painting/name
be "Imagine"?
e.g. https://console.crux.cloud/console?query=%5B%5B%3Acrux.tx%2Fput%0A++%7B%3Acrux.db%2Fid++++++%3Apainting%2Fflipando%0A+++%3Apainting%2Fid+++++%3Apainting%2Fflipando%0A+++%3Apainting%2Fname+++%22Flipando%22%0A+++%3Apainting%2Fstatus+%22available%22%0A+++%3Apainting%2Fprice++1000%0A+++%3Apainting%2Fuser+++%3Auser%2Fdan%7D%5D%0A+%5B%3Acrux.tx%2Fput%0A++%7B%3Acrux.db%2Fid++++++%3Apainting%2Fimagine%0A+++%3Apainting%2Fid+++++%3Apainting%2Fimagine%0A+++%3Apainting%2Fname+++%22Imagine%22%0A+++%3Apainting%2Fstatus+%22available%22%0A+++%3Apainting%2Fprice++800%0A+++%3Apainting%2Fuser+++%3Auser%2Fdan%7D%5D%0A+%5B%3Acrux.tx%2Fput%0A++%7B%3Acrux.db%2Fid++++++%3Aoffer%2Ftwenty%0A+++%3Aoffer%2Fid++++++++%3Aoffer%2Ftwenty%0A+++%3Aoffer%2Fname++++++%2220%25+off%22%0A+++%3Aoffer%2Factive++++true%0A+++%3Aoffer%2Fpercentage+20%0A+++%3Aoffer%2Fpaintings++%23%7B%3Apainting%2Fflipando%0A+++++++++++++++++++++++%3Apainting%2Fimagine%7D%0A+++%3Aoffer%2Fuser+++++++%3Auser%2Fdan%7D%5D%5D and https://console.crux.cloud/console?query=%7B%3Afind++%5Boffer+oname+painting+pname%5D%0A+%3Awhere+%5B%5Bpainting+%3Apainting%2Fid+l%5D%0A+++++++++%5Boffer+%3Aoffer%2Fpaintings+l%5D%0A+++++++++%5Boffer+%3Aoffer%2Fname+oname%5D%0A+++++++++%5Bpainting+%3Apainting%2Fname+pname%5D%5D%7D
@U899JBRPF hmmm definately … sorry for wasting your time! and thanks for telling me about the console also.