This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-01
Channels
- # babashka (2)
- # beginners (51)
- # calva (79)
- # cestmeetup (1)
- # chlorine-clover (1)
- # cider (6)
- # clj-kondo (1)
- # cljdoc (4)
- # cljsrn (2)
- # clojure (31)
- # clojure-europe (2)
- # clojurescript (5)
- # conjure (4)
- # cursive (26)
- # datascript (4)
- # datomic (1)
- # figwheel (1)
- # figwheel-main (2)
- # off-topic (25)
- # reagent (2)
- # reveal (4)
- # shadow-cljs (21)
- # xtdb (1)
given this schema:
(def ^:private schema
{::node-id {:db/unique :db.unique/identity}})
doing this:
(ds/db-with (ds/empty-db schema)
[{::node-id "root"}
{::node-id "seg-asdf"
::node-type ::segment/v3
::parent [::node-id "root"]}])
just seems to store [::node-id "root"]
literally in the ::parent
attribute of the 2nd entity, rather than storing an entity-id