There is a lot of opportunity to try and deduplicate the logic between querying an individual event stream and querying global state. This PR is an experiment with that. The hope is that we can provide even more query types in the future under this interface. For example, it would be cool to filter by events of a given type, which is possible in stores like postgres where we can add indexes on the JSON.
It's very possible I decide these changes aren't worth the increased complexity and I close this PR :smile:
There is a lot of opportunity to try and deduplicate the logic between querying an individual event stream and querying global state. This PR is an experiment with that. The hope is that we can provide even more query types in the future under this interface. For example, it would be cool to filter by events of a given type, which is possible in stores like postgres where we can add indexes on the JSON.
It's very possible I decide these changes aren't worth the increased complexity and I close this PR :smile: