Using datomic pro, I see no way to make your :transact work with ref many to components.
You require that the nested components match perfectly, but use identity on components and de-id them, which means when I pull them I have to try to munge them around. Not only that, but your output does not even say what is expected vs actual.
When I change the implementation to this, it seems to work better, but perhaps you can enlighten me why you treat component refs different from non-component, since they are both entities...seems like checking by db/id is sufficient:
Using datomic pro, I see no way to make your
:transact
work with ref many to components.You require that the nested components match perfectly, but use identity on components and de-id them, which means when I pull them I have to try to munge them around. Not only that, but your output does not even say what is expected vs actual.
When I change the implementation to this, it seems to work better, but perhaps you can enlighten me why you treat component refs different from non-component, since they are both entities...seems like checking by db/id is sufficient: