This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-04
Channels
- # aleph (8)
- # aws (14)
- # babashka (37)
- # beginners (30)
- # calva (5)
- # cider (4)
- # clj-kondo (21)
- # cljsrn (4)
- # clojure (234)
- # clojure-denmark (1)
- # clojure-europe (10)
- # clojure-france (10)
- # clojure-italy (4)
- # clojure-nl (17)
- # clojure-sanfrancisco (1)
- # clojure-spec (8)
- # clojure-uk (44)
- # clojurescript (20)
- # cursive (9)
- # datascript (2)
- # datomic (5)
- # emacs (9)
- # fulcro (50)
- # graalvm (32)
- # jackdaw (18)
- # leiningen (1)
- # malli (10)
- # meander (10)
- # nrepl (10)
- # off-topic (15)
- # pathom (20)
- # re-frame (14)
- # reagent (37)
- # reitit (7)
- # ring (1)
- # shadow-cljs (102)
- # test-check (6)
- # tree-sitter (15)
- # vim (4)
- # xtdb (2)
- # yada (1)
some Datomic folk are out atm, response might be delayed, but I'll copy into our internal support room
Is there a way to perform a "left anti join" on datomic? I want to find all the entities with a certain attribute whose values is not in a list that I pass in as an argument
For instance, Imagine I have the :order/type
attribute, and I want to find all the orders whose :order/type
is different than let's say :created
and delivered
The argument would be [:created :devivered]
, and it could change
if the attribute value you are testing is cardinality-one, the easiest thing IMO is to provide the filter as a set and (not [(contains? ?filter ?v)])
otherwise, you want a negated variant of….this https://stackoverflow.com/questions/43784258/find-entities-whose-ref-to-many-attribute-contains-all-elements-of-input/43808266#43808266