Schemas are stored in state/schemas. API function persistent-facts or somesuch would:
Get all idents from the persistent schema (believe there is a function in schema ns for this.
Select those keys from the view model (we still store facts at the top level regardless of whether they have a subscription)
Reduce into vector with fn to check if attr is one-to-many. If so, map values to [e a v] and concat with accumulated. Otherwise conj the current with accumulated
Should be relatively easy to implement™️.
Schemas are stored in
state/schemas
. API functionpersistent-facts
or somesuch would:schema
ns for this.