Repository navigation
Release v5.7.0
Screenplay can now describe property graphs and project events onto them. A graph declares node labels, edge types and their typed properties, and a projection … => graph … builds nodes and edges from events with the same mappings and counters read-model projections use.
Added
graphdeclarations:nodeblocks with typed properties and exactly onekey, andedge <TYPE> source <Label> target <Label>blocks with typed properties and optionalidentified byfor several edges between the same nodes. See Graphs (#1160)- Graph projections:
nodeandedgeblocks withfrom … key …,from … source … target …, property mappings, counters,every,$eventContextvalues andremove with … [detach]. See Graph projections (part of #1160) given graphandthen graphspecification steps (has node,has edge,no node,no edge), run by the reference executor and therun-specificationsMCP tool (part of #1160)- Graphs and graph projections bind into the executable semantic model as ESM v38; models without a graph keep their version and bytes (part of #1160)
- Diagnostics
PLAY0862toPLAY0877for malformed graphs, unsupported property types, missing or duplicate keys, undeclared labels, edge types and properties,detachon an edge, read-model-only constructs in a graph projection, and graph projections outside a slice (part of #1160) - Graph support in the TypeScript compiler, the Monaco editor and the VS Code extension (part of #1160)
Samples/Organization: persons, groups, nested groups and role assignments projected onto a graph, with specifications (part of #1160)