Fork me on GitHub

curious how others would approach building this, or if this smells:

(make-query {:ns/attr1 "v1" :ns2/attr2 :v2})
;; => [:find ?e :in $ :where [?e :ns/attr1 "v1"] [?e :ns2/attr2 :v2]]
in english, it takes a map, attribute => value, and produces a query for a single entity that has the given value for each attribute. ive implemented make-query using syntax-quote, and also experimented with the :in clause to do a similar thing, but didn’t get too far with it. would love some additional perspective