Skip to content

Release v0.16.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 10:56
2a92e35

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.
  • Documentation for declaring graph views.