This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-20
Channels
- # announcements (16)
- # babashka (104)
- # beginners (77)
- # bristol-clojurians (1)
- # calva (3)
- # chlorine-clover (50)
- # cider (19)
- # clojure (73)
- # clojure-australia (1)
- # clojure-europe (37)
- # clojure-france (3)
- # clojure-nl (3)
- # clojure-norway (13)
- # clojure-spec (21)
- # clojure-uk (79)
- # clojurescript (225)
- # conjure (102)
- # cursive (11)
- # datascript (1)
- # datomic (1)
- # defnpodcast (1)
- # events (3)
- # figwheel-main (2)
- # fulcro (49)
- # ghostwheel (10)
- # helix (1)
- # kaocha (17)
- # leiningen (10)
- # meander (1)
- # off-topic (26)
- # other-lisps (3)
- # pathom (5)
- # re-frame (40)
- # reagent (6)
- # reitit (33)
- # shadow-cljs (107)
- # testing (3)
- # tools-deps (68)
- # xtdb (16)
- # yada (3)
I have a query that looks something like this:
(d/q '[:find (pull ?m pattern) ?region
:in $ pattern ?region [?aws-class ...]
:where
[?m ::machine-type/aws-region ?region]]
(d/db conn)
[::machine-type/id]
"us-west-2"
[])
=> []
That query returns an empty vector []
. If I alter that query to include anything in the vector passed as the final argument passed to the query, I get back 271 results. Is this an expected behavior?
(d/q '[:find (pull ?m pattern) ?region
:in $ pattern ?region [?aws-class ...]
:where
[?m ::machine-type/aws-region ?region]]
(d/db conn)
[::machine-type/id]
"us-west-2"
["something totally random"])
=> vector-of-271-tuples