Skip to content

Release v19.129.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 19:07
e9b8462

Projections can now target a property graph instead of a document or relational read model. Chronicle projects events onto nodes and edges, and the new Neo4j graph sink stores them with one database per event store and namespace.

Added

  • Graph projections: a projection can map events onto graph nodes and edges with keys, property mappings, counters and $eventContext values, and remove them again, with detach for nodes that still have edges. Writes are idempotent per element and replay rebuilds the graph without touching elements other projections own. See Graph projections (#5668)
  • InMemoryGraph sink type for tests and local development (#5668)
  • Neo4j graph sink (Neo4j sink type), configured in the neo4j section of chronicle.json, with database-per-namespace or single-database mode, key uniqueness constraints and database creation on first use. See Neo4j (#5670)
  • Storage connection resolution supports Neo4j for read model databases, so a platform can answer the Bolt URI, database and identity per namespace (part of #5670)
  • .NET client: model-bound graphs with [Node], [Edge], [Graph], [Source<>], [Target<>], [EdgeFrom<>], [EdgeRemovedWith<>] and [RemovedWith<>(detach: true)], alongside the existing property attributes (#5671)
  • .NET client: fluent IGraphProjection with Node<T>() and Edge<TEdge, TSource, TTarget>() builders, and ChronicleOptions.DefaultGraphSinkTypeId (default Neo4j) (part of #5671)
  • GraphScenario in Cratis.Chronicle.Testing for asserting nodes and edges produced by graph projections (part of #5671)
  • Analyzers CHR0066 (graph property must be a primitive or a list of primitives), CHR0067 (a node needs exactly one key) and CHR0068 (a node or edge cannot also be a read model) (part of #5671)
  • The projection declaration language accepts a graph declaration with a projection … => graph …; saving one registers the graph and its projection, and registered graph projections render back to the same declaration. See Graph targets (#5672)

Changed

  • Chronicle now uses Screenplay 5.7.0 to parse projection declarations (part of #5672)