You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
graphs.NewView declares a graph view: a read model anchored at one node that follows declared edges to nested views and exposes node and edge properties.
(*Graph).WithViews attaches views to a graph. Declaration.ViewDefinition and Definition.Views expose the canonical view definition, as Canonical or CanonicalWithSchema, the JSON every Chronicle client shares.
An invalid view fails Build() with a typed reason that works with errors.Is, such as graphs.EdgeNotIncidentOnRoot or graphs.RecursiveView.