datomic-junk
datomic-junk copied to clipboard
Nested entities in data loading
Hi, I really like the lib since it helps loading seed data much easier. I just encounter a problem regarding nested entites while loading data:
;; bank-offer
{:bank-offer/bank :ref :one}
;; bank
{:bank/name :string}
;; projects
{:project/bank-offers :ref :many}
;; I try to load data like this, but it doesn't seem to work
{:project/bank-offers [{:bank-offer/bank {:bank/name "test"}}]}
@flyingmachine
I'm not actively working on this project, but if you're able to put together a pull request that fixes the issue (and includes tests) then I'd be happy to merge it :smile:
@flyingmachine I have solved the problem by falling back using traditional edn and tempid. It's not really smart and it works for now. Thanks for answering :)