serverlesstechnology / cqrs

A lightweight, opinionated CQRS and event sourcing framework.
Other
370 stars 40 forks source link

load_all / `.iter()` on `ViewRepository` #78

Closed kelko closed 7 months ago

kelko commented 1 year ago

Returning all entries from a ViewRepository, not only one by ID, would be nice addition. I want a REST API like /query/entry/ to return all and /query/entry/{id}/ to return one. Last one would be easy to implement with ViewRepository. First one I'm struggling how to do with cqrs-es.

davegarred commented 7 months ago

This is a fairly niche case, it should probably be done via a custom database query.