This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-05
Channels
- # aleph (2)
- # announcements (3)
- # architecture (5)
- # beginners (51)
- # biff (5)
- # cider (1)
- # clerk (8)
- # clj-kondo (6)
- # cljsrn (5)
- # clojure (31)
- # clojure-europe (42)
- # clojure-nl (1)
- # clojure-norway (21)
- # clojure-uk (3)
- # emacs (11)
- # fulcro (2)
- # graphql (6)
- # hugsql (1)
- # jobs (2)
- # leiningen (3)
- # lsp (3)
- # malli (13)
- # missionary (1)
- # off-topic (7)
- # pathom (7)
- # polylith (27)
- # reagent (14)
- # reitit (3)
- # remote-jobs (7)
- # shadow-cljs (20)
- # spacemacs (4)
- # sql (3)
- # tools-build (4)
- # xtdb (7)
Hiya! Just got back to our little XTDB project, tried using xt/new-api-client
but if I do a query with pull containing a *
– i get an error “No reader function for tag object” – I’m running on 1.21.0 so this might be something that is fixed or am I doing something wrong? If I don’t use *
the query works
If this is a bug and it is fixed later on, what is the migration strategy at this point? 🙂
Hey! That sounds weird. I guess it sounds like you wrote something into XT with an edn tag that you're subsequently no longer using / have removed from the environment, and XT can't decode it without a valid reader
Basically
(defn get-facts [user-id]
(xt/q (xt/db node)
'{:find [(pull u [* {(:user/_id {:as :user/knows}) [:user/rating {:core/skill [:core/name]}]}])]
:where [[u :xt/id user-id]
[u :user/name name]]
:in [user-id]}
user-id))
called with
(get-facts #uuid "xxxx")
caused it. If I remove *
and put the fields there instead, it works. It seems to work with repl with *
just fine.