This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-23
Channels
- # babashka (15)
- # beginners (102)
- # biff (4)
- # calva (15)
- # cider (51)
- # clojure (5)
- # clojure-dev (3)
- # clojure-europe (3)
- # clojure-france (1)
- # clojure-india (1)
- # clojure-korea (2)
- # clojure-norway (13)
- # clojurescript (20)
- # data-science (1)
- # datalevin (6)
- # datascript (2)
- # emacs (3)
- # events (2)
- # fulcro (4)
- # gratitude (2)
- # introduce-yourself (8)
- # lsp (3)
- # malli (1)
- # meander (1)
- # nbb (9)
- # off-topic (11)
- # releases (1)
- # ring (1)
- # yamlscript (5)
It's possible to use https://docs.datomic.com/cloud/query/query-data-reference.html#return-maps in datalevin?
I'm trying to do this in a query like this:
(d/q '[:find ?pn ?ps (count ?d)
:keys project sha qtd
:in $
:where
[?p :project/id]
[?p :project/name ?pn]
[?p :project/sha ?ps]
[?n :namespace/project ?p]
[?d :definition/namespace ?n]]
db)
But I'm getting an error:
> ; (err) class clojure.lang.PersistentList$EmptyList cannot be cast to class clojure.lang.IEditableCollection (clojure.lang.PersistentList$EmptyList and clojure.lang.IEditableCollection are in unnamed module of loader 'app')
Without :keys
the query works fine