This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-08
Channels
- # announcements (42)
- # aws (2)
- # babashka (69)
- # beginners (38)
- # calva (18)
- # cider (39)
- # circleci (1)
- # clj-commons (10)
- # cljs-dev (2)
- # clojure (36)
- # clojure-australia (14)
- # clojure-europe (25)
- # clojure-gamedev (40)
- # clojure-losangeles (4)
- # clojure-nl (5)
- # clojure-sweden (1)
- # clojure-uk (5)
- # clojurescript (133)
- # core-logic (24)
- # cursive (7)
- # datalevin (4)
- # datascript (3)
- # figwheel-main (1)
- # fulcro (45)
- # honeysql (1)
- # integrant (43)
- # introduce-yourself (1)
- # jobs (4)
- # leiningen (3)
- # lsp (32)
- # nextjournal (9)
- # pathom (18)
- # polylith (21)
- # portal (65)
- # re-frame (6)
- # releases (1)
- # remote-jobs (1)
- # reveal (12)
- # rewrite-clj (1)
- # sci (84)
- # tools-deps (22)
Can someone point me to documentation about how the [:find [?e ...]
and related syntax works? Specifically I'm referring to the "bracket ?e ellipsis" bit. I don't quite understand the semantics there. If I want to pull out the entity id of an entity from a query that I expect to only return a single result, I end up with a result like [1]
and I have to call first
to get the id out. I want to avoid the call to first by learning how that ellipsis syntax works.
Hi, the syntax is "find specs" - have you seen the tests already? https://github.com/tonsky/datascript/blob/master/test/datascript/test/query_find_specs.cljc
most of it is inspired of datomic: https://docs.datomic.com/on-prem/query/query.html