Fork me on GitHub
#datomic
<
2020-05-20
>
kenny20:05:11

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