datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
2018-04-02T08:22:31.000216Z

@ho0man find ids using query or index, then retract

2018-04-02T08:24:18.000001Z

(let [source-eid (:db/id (d/entity db [:source/id source-id]))
      flow-eids  (map :e (d/datoms db :avet :source-flow/source source-eid))]
  (d/transact! conn (for [flow-eid flow-eids] [:db.fn/retractEntity flow-eid])))

2018-04-02T08:26:02.000014Z

@dimovich normally you’d use OR but we don’t support it in DataScript yet

2018-04-02T17:11:42.000074Z

Thanks a lot