This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-05
Channels
- # announcements (1)
- # babashka (5)
- # beginners (151)
- # calva (43)
- # clj-kondo (23)
- # cljdoc (1)
- # cljs-dev (6)
- # cljsrn (10)
- # clojure (60)
- # clojure-australia (1)
- # clojure-europe (26)
- # clojure-gamedev (14)
- # clojure-nl (1)
- # clojure-spec (10)
- # clojure-uk (80)
- # clojurescript (66)
- # clojureverse-ops (4)
- # community-development (7)
- # conjure (8)
- # datomic (15)
- # deps-new (1)
- # docker (27)
- # emacs (2)
- # fulcro (13)
- # honeysql (13)
- # java (5)
- # jobs-discuss (43)
- # lsp (121)
- # luminus (13)
- # malli (1)
- # off-topic (73)
- # pathom (12)
- # polylith (29)
- # practicalli (4)
- # re-frame (35)
- # reagent (44)
- # remote-jobs (5)
- # rewrite-clj (2)
- # sci (7)
- # shadow-cljs (125)
- # sql (4)
- # tools-deps (9)
- # xtdb (5)
Hi there, is there a way with the pull
syntax to tell the datalog engine to get back only one result?
Some Eql is supported on properties/joins and I was wondering if that could be applied to the "root" result as well
I know I can do a ffirst
but I guess having in the query would make it easier to read
Hey! For the root, you mean like DataScript's :find ?e .
? Crux doesn't support that currently (it's just sugar), so you will have to stick with ffirst
There was a discussion recently about cardinalities in the pull joins that is probably of interest https://github.com/juxt/crux/issues/1544 - but Crux's pull
only helps with the reverse lookup case
We did consider something here recently https://github.com/juxt/crux/issues/1449 - but it's unlikely to become a priority any time soon. PRs are welcome though, of course :)
yeah I think Datascript feature is what I had in mind