This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-28
Channels
- # announcements (1)
- # beginners (128)
- # calva (15)
- # cider (1)
- # clerk (4)
- # clj-kondo (10)
- # clojure-berlin (5)
- # clojure-denmark (2)
- # clojure-europe (59)
- # clojure-nl (2)
- # clojure-norway (83)
- # clojure-sweden (3)
- # clojure-uk (4)
- # cursive (11)
- # datomic (8)
- # emacs (13)
- # events (1)
- # hyperfiddle (3)
- # juxt (2)
- # malli (13)
- # nrepl (10)
- # off-topic (46)
- # releases (2)
- # reveal (1)
- # rewrite-clj (6)
- # sci (6)
- # scittle (17)
- # shadow-cljs (2)
- # xtdb (2)
- # yamlscript (8)
Question about the docs/resources:
https://docs.xtdb.com/static/learn-xtql-today-with-clojure.html seems to show a phantom put
function under xtdb.api
:
(xt/submit-tx my-node (concat
(for [doc my-persons]
(xt/put :persons doc))
(for [doc my-movies]
(xt/put :movies doc))))
Did that function exist at some point, or am I losing my mind?It did exist previously, yep, you're not going crazy 🙂 Apologies, will get that cleared up - for now, that example should read:
(xt/submit-tx my-node (concat
(for [doc my-persons]
[:put-docs :persons doc])
(for [doc my-movies]
[:put-docs :movies doc])))
;; or, using batched tx-ops
(xt/submit-tx my-node [(into [:put-docs :persons] my-persons)
(into [:put-docs :movies] my-movies)])
✅ 1