(defn entity-update
[entity-id new-attrs valid-time]
(let [entity-prev-value (crux/entity (crux/db node) entity-id)]
(crux/submit-tx node
[[:crux.tx/put
(merge entity-prev-value new-attrs)
valid-time]])))
; by @spacegangster