Skip to content

docs: improve persistence pages with examples and state store#517

Merged
alexeyzimarev merged 2 commits intodevfrom
docs/persistence-pages-update
Mar 10, 2026
Merged

docs: improve persistence pages with examples and state store#517
alexeyzimarev merged 2 commits intodevfrom
docs/persistence-pages-update

Conversation

@alexeyzimarev
Copy link
Copy Markdown
Contributor

Summary

  • Event store page: added usage examples covering appending events, multi-stream append, reading events, stream management (StreamExists, TruncateStream, DeleteStream), and aggregate load/store via extension methods
  • State store page (new): documents LoadState extension methods on IEventReader — loading state by stream name, loading by typed identity with StreamNameMap, the FoldedEventStream<TState> return type, and how it underpins both command service variants
  • Event streams page (renamed from "Aggregate stream"): rewritten to be state-centric — covers StreamName.For<T> (unconstrained), StreamName.ForState<TState>, uses Id instead of deprecated AggregateId, notes applicability to both aggregate-based and functional command services
  • Fixed relative links in next/ version that incorrectly escaped the next/ directory

All changes applied to both v0.16 (stable) and next (preview).

Test plan

  • pnpm build passes (140 pages)
  • Spot-check rendered pages in both version tabs

🤖 Generated with Claude Code

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant