This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-20
Channels
- # beginners (35)
- # boot (81)
- # braveandtrue (7)
- # cider (74)
- # cljs-dev (52)
- # cljsrn (5)
- # clojure (114)
- # clojure-austin (1)
- # clojure-belgium (3)
- # clojure-brasil (8)
- # clojure-czech (7)
- # clojure-greece (18)
- # clojure-ireland (1)
- # clojure-russia (67)
- # clojure-uk (11)
- # clojurescript (52)
- # core-async (5)
- # core-matrix (3)
- # cursive (13)
- # data-science (3)
- # datomic (8)
- # emacs (80)
- # events (2)
- # hoplon (8)
- # immutant (7)
- # jobs-discuss (3)
- # juxt (25)
- # ldnproclodo (21)
- # leiningen (27)
- # mount (24)
- # off-topic (6)
- # om (23)
- # onyx (48)
- # parinfer (1)
- # proton (4)
- # re-frame (41)
- # reagent (9)
- # spacemacs (8)
- # untangled (122)
I'm trying to do a simple join in a pull api call. And I get
:db.error/invalid-recur-limit Cannot interpret as a recursive pull
specification: :db/ident
{:db/error :db.error/invalid-recur-limit}
Any ideas what the cause might be?
(d/pull db [{:data-source/response-type :db/ident}]
[:data-source/id data-source-id])
@currentoor: :db/ident
needs to be [:db/ident]
@bkamphaus: oh right!
thanks
More specifically, the value position in a map-spec
needs to be a pattern
itself, so wrapped in a list or a vector. Since it can’t parse it as a pattern it tries to parse it as a recursion-limit
, which fails. May seem overkill at times but I find stepping through the grammar helpful when troubleshooting patterns that don’t seem to be working: http://docs.datomic.com/pull.html#grammar
good idea