Repository navigation
Release v19.129.0
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
$eventContextvalues, and remove them again, withdetachfor 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) InMemoryGraphsink type for tests and local development (#5668)- Neo4j graph sink (
Neo4jsink type), configured in theneo4jsection ofchronicle.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
Neo4jfor 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
IGraphProjectionwithNode<T>()andEdge<TEdge, TSource, TTarget>()builders, andChronicleOptions.DefaultGraphSinkTypeId(defaultNeo4j) (part of #5671) GraphScenarioinCratis.Chronicle.Testingfor 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
graphdeclaration with aprojection … => 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)