This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-02
Channels
- # ai (1)
- # aleph (16)
- # announcements (1)
- # architecture (51)
- # babashka (32)
- # beginners (27)
- # calva (3)
- # clerk (1)
- # clojure (49)
- # clojure-art (1)
- # clojure-denver (6)
- # clojure-europe (70)
- # clojure-nl (1)
- # clojure-norway (56)
- # clojure-uk (2)
- # clojuredesign-podcast (4)
- # clojurescript (57)
- # clr (15)
- # community-development (3)
- # conjure (1)
- # core-async (10)
- # data-science (1)
- # datalog (2)
- # datomic (3)
- # emacs (12)
- # events (1)
- # gratitude (4)
- # honeysql (9)
- # hyperfiddle (86)
- # jobs (4)
- # off-topic (10)
- # pedestal (5)
- # portal (11)
- # practicalli (2)
- # reitit (7)
- # releases (3)
- # remote-jobs (1)
- # sql (15)
- # tools-build (8)
- # xtdb (4)
Is there a way to retrieve an entity and all other entities associated with it either directly or indirectly in XTDB (1.x) datalog query, without having to list every relationship? From my understanding it's impossible since vars in the attribute position are not supported. For example :
'{:find [child-name]
:in [parent]
:where [[parent :xt/id]
(child-of parent child)
[child :name child-name]]
:rules [[(child-of p c)
[p _ c]]
[(child-of p c)
[p _ c1]
(child-of c1 c)]]}
hey @U0105D1EL4B - yes, this is correct
Will it be possible in Xtdb 2.x?