According to line 54 of the geting-started.clj file that comes with Datomic (under samples / seattle), I should be able to use the pull function inside the request as follows:
(def pull-results (q '[:find (pull ?c [*]) :where [?c :community/name]] (db conn)))
However, in my code below, I get an error: IllegalArgumentException Argument [*] in: find is not a variable datomic.query / validate-query (query.clj: 315)
(defn get-tag [] (d/q '[:find (d/pull ?e [*])
:where [?e :tag.tag/term]] (db conn)))
Now, in my opinion, these two are similarly constructed. Combined with the fact that the pull api function read from http://docs.datomic.com/clojure/#datomic.api/pull looks like this:
(pull db pattern eid)
I would say that the API has changed since writing Seattle code. I'm right? If not, what is happening here. Thanks