rhizome-node/docs/resolvers.md
Lentil Hoffman 73d2bf23f5
refactor: simplify relationship graph implementation
- Implement RelationshipGraphResolver extending Lossy
- Add type-safe accumulator for relationship graph state
- Update tests and documentation
2025-06-22 18:39:53 -05:00

566 B

Resolvers (Views)

The workhorse of this system is likely going to be our lossy views. This is where the computation likely generally occurs.

So, let's talk about how to create a view.

A lossy view initializes from a given lossless view. The lossless view dispatches events when entity properties are updated.

View semantics are similar to map-reduce, resolvers in Redux, etc.

The key is to identify your accumulator object. Your algorithm SHOULD be implemented so that the reducer is a pure function. All state must therefore be stored in the accumulator.