Refactored view model mutation functions into defmulti that dispatches based on op and fact-type. Should be more easily extensible.
Added Tuples->maps function that recursively converts Tuple records to Datomic-style maps (regular maps of attribute value pairs with :db/id key for eid)
Use Tuples->maps to parse value slot of facts with attribute ::sub/response
Added tests for Tuples->maps and adding subscriptions. TODO. Add tests for remove subscriptions (appears working but just to be sure)
Tuples->maps
function that recursively converts Tuple records to Datomic-style maps (regular maps of attribute value pairs with:db/id
key for eid)Tuples->maps
to parse value slot of facts with attribute::sub/response
Tuples->maps
and adding subscriptions. TODO. Add tests for remove subscriptions (appears working but just to be sure)