This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-28
Channels
- # beginners (226)
- # boot (18)
- # bristol-clojurians (4)
- # cider (1)
- # clara (77)
- # cljs-dev (79)
- # cljsjs (27)
- # clojure (178)
- # clojure-austin (9)
- # clojure-dev (30)
- # clojure-gamedev (11)
- # clojure-italy (5)
- # clojure-losangeles (3)
- # clojure-poland (1)
- # clojure-spec (42)
- # clojure-uk (34)
- # clojurescript (182)
- # core-async (5)
- # core-logic (2)
- # cursive (17)
- # datascript (12)
- # datomic (33)
- # emacs (8)
- # figwheel (1)
- # fulcro (25)
- # jobs (6)
- # jobs-discuss (27)
- # lein-figwheel (1)
- # lumo (18)
- # off-topic (17)
- # onyx (5)
- # pedestal (7)
- # re-frame (30)
- # reagent (52)
- # remote-jobs (1)
- # ring (2)
- # ring-swagger (1)
- # shadow-cljs (40)
- # spacemacs (5)
- # sql (31)
- # unrepl (12)
- # vim (25)
Can I do multiple pulls in a query? It seems to only respect the first (pull ...) in the find clause
In datomic, yes, you can do (d/q '[:find (pull ?e) (pull ?a) :where [?e :user/address ?a]])
.
@souenzzo thanks. i was doing something still. I was calling (map first) on the result of the query and went to bed confused about why the order of the pulls in the :find clause mattered. sleep is good!
In these docs, there is an example which uses a schema that specifies a valueType of :db.type/string on an attribute: https://github.com/tonsky/datascript/wiki/API-overview
When I specify a valueType of string, it throws an exception: Bad attribute specification ...