This is the case, because inter-fn are interpreted by sci, which does not have direct access to Clojure vars. We should make it possible to do so.
Notice that, we do not need an inter-fn for this use case in embedded mode, we can use :db.fn/call instead, as it does not persist the function and just call it.
From Clojurian slack:
:add-node1 fails, but :add-node2 succeeds.
This is the case, because inter-fn are interpreted by sci, which does not have direct access to Clojure vars. We should make it possible to do so.
Notice that, we do not need an inter-fn for this use case in embedded mode, we can use
:db.fn/call
instead, as it does not persist the function and just call it.