This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-31
Channels
- # announcements (4)
- # babashka (73)
- # beginners (128)
- # bristol-clojurians (1)
- # calva (8)
- # cider (8)
- # clj-kondo (4)
- # clojars (7)
- # clojure (148)
- # clojure-dev (16)
- # clojure-europe (5)
- # clojure-gamedev (1)
- # clojure-italy (10)
- # clojure-nl (7)
- # clojure-uk (57)
- # clojurescript (57)
- # clojutre (1)
- # community-development (2)
- # cursive (7)
- # data-science (1)
- # datascript (5)
- # datomic (9)
- # events (6)
- # figwheel-main (1)
- # fulcro (91)
- # garden (11)
- # graalvm (14)
- # graphql (1)
- # immutant (4)
- # jobs (1)
- # kaocha (33)
- # off-topic (63)
- # onyx (3)
- # pathom (4)
- # re-frame (23)
- # ring-swagger (1)
- # shadow-cljs (49)
- # sql (6)
- # testing (8)
- # tools-deps (45)
- # vrac (1)
- # xtdb (10)
Hi there - I am a newbie Datascript user and I have a newbie question :D I was wondering what is the equivalent of an entity identifier https://docs.datomic.com/on-prem/identity.html#entity-identifiers in Datascript
and how I can use the pull-many
function over an attribute that I declared unique
also, does Datascript support :keys
as in:
(datascript/q '[:find ?guid-string
:keys guid
:where
[_ :currency_code "CAD"]
[?guid :guid ?guid-string]]
@+conn2+)
this brings me closer to what I want - which is a list of entities with fields - but still not perfect:
(datascript/q '[:find (pull ?e [:guid :name :currency_code])
:where
[?e :currency_code "CAD"]]
@+conn2+)
(sorry for the noise) to summarize I was wondering what is the best way to query by using Lookup Refs https://docs.datomic.com/on-prem/identity.html#lookup-refs