This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-21
Channels
- # 100-days-of-code (1)
- # announcements (2)
- # beginners (164)
- # cider (23)
- # cljs-dev (30)
- # cljsjs (11)
- # cljsrn (7)
- # clojure (116)
- # clojure-boston (1)
- # clojure-dev (20)
- # clojure-finland (2)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (39)
- # core-async (19)
- # cursive (43)
- # data-science (2)
- # datomic (24)
- # emacs (10)
- # figwheel-main (20)
- # fulcro (63)
- # hoplon (7)
- # hyperfiddle (7)
- # instaparse (3)
- # kaocha (1)
- # nrepl (3)
- # off-topic (170)
- # onyx (13)
- # other-languages (3)
- # parinfer (13)
- # re-frame (39)
- # reagent (5)
- # reitit (22)
- # ring-swagger (4)
- # shadow-cljs (284)
- # spacemacs (2)
- # sql (27)
- # testing (28)
- # unrepl (2)
@dustingetz can you please explain how can I query/pull a particular entity, my naive approach “pull” [:db/id :intent/def] 17592186046681 didn’t help - http://alexandrkozyrev.hyperfiddle.net/:intent-bad-name-editor/
To address an entity, you probably want to link to it. So look at http://tank.hyperfiddle.net/:tutorial.race/ and note the tooltips on the link. Then click the link and see the entity is in the URL. The link/formula is the "Excel formula" that controls what goes into the URL (There may not be a valid reason anymore to change this from the default, we aren't sure)
Another interesting demo is http://tank.hyperfiddle.net/:clojurians/ – hover over #clojure, see the tooltip, and find it in the links table. This demo uses link/class, which is just an extra identifying keyword that doesn't do anything (like HTML lets you use a class to name a div, <div class="channel">). We use the :link/class from the :fiddle/view in order to place the links
For debugging, you can craft your own URL to an entity, or you can use :fiddle/query with a grounded db/id, but this is generally not what a real app wants
Dustin, can you please show an example of :fiddle/query with a grounded db/id, I’ve tried - http://alexandrkozyrev.hyperfiddle.net/:intent-bad-name-editor/
Ground is like clojure.core/identity
except a special Datomic version that is optimized for constants, it is a hint to the datomic query optimizer
To address an entity, you probably want to link to it. So look at http://tank.hyperfiddle.net/:tutorial.race/ and note the tooltips on the link. Then click the link and see the entity is in the URL. The link/formula is the "Excel formula" that controls what goes into the URL (There may not be a valid reason anymore to change this from the default, we aren't sure)
Another interesting demo is http://tank.hyperfiddle.net/:clojurians/ – hover over #clojure, see the tooltip, and find it in the links table. This demo uses link/class, which is just an extra identifying keyword that doesn't do anything (like HTML lets you use a class to name a div, <div class="channel">). We use the :link/class from the :fiddle/view in order to place the links
For debugging, you can craft your own URL to an entity, or you can use :fiddle/query with a grounded db/id, but this is generally not what a real app wants