Olical<p>```clojure<br>(xt/execute-tx<br> node<br> [[:update '{:table :usage<br> :bind [{:xt/id id} user]<br> :unify [(from :usage [{:xt/id id} user-id])<br> (where (nil? user-id))]<br> :set {:user-id user<br> :guild-id "98393139101827072"}}]])<br>```</p><p>I wanted to copy user->user-id in records that lack a user-id. Am <a href="https://mastodon.social/tags/xtdb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xtdb</span></a> ing correctly? Also filling in guild-id with a static value.</p><p>Took me a while to get this right!</p>