You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.g. :xtdb.api/delete should be conformed with the original :xt/id if it is still available, otherwise there are very limited options for reversing the lookup of an #xtdb/id (without resorting to internal APIs), possibly just this:
(with-open [n (xt/start-node {})]
(xt/submit-tx n [[::xt/delete:foo]])
(xt/submit-tx n [[::xt/put {:xt/id:foo}]])
(xt/submit-tx n [[::xt/delete:foo]])
(xt/sync n)
(defnxtdb-id->xt-id [node eid]
(with-open [i (xt/open-entity-history (xt/db node)
eid
:asc
{:with-docs?true:with-corrections?true})]
(:xt/id (some:xtdb.api/doc (iterator-seq i)))))
(xtdb-id->xt-id n (xtdb.codec/new-id:foo))) ;;=> :foo
e.g.
:xtdb.api/delete
should be conformed with the original:xt/id
if it is still available, otherwise there are very limited options for reversing the lookup of an#xtdb/id
(without resorting to internal APIs), possibly just this:xtdb/core/src/xtdb/tx/conform.clj
Lines 230 to 231 in e727d8a
To be discussed.
The text was updated successfully, but these errors were encountered: