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
The common use case where this matters anytime one wants to run a pull query on one database and transact the result into another. In my case I have a backend and frontend DataScript DB. Based on the route the backend runs d/pull and sends the result to the frontend to be transacted. Since the pull result contains both forward and backward refs, this fails.
In a transaction where a map has refs and reverse-ref attributes, the ref attributes are thrown away.
This works:
This fails for
:foo/relations [{:foo/id "foo3"}]
but works for the reverse:foo/_relations
:Looking at the indexes of either DB we see that the relations and datoms are missing in
db-with-foo-backwards
:The text was updated successfully, but these errors were encountered: