We came to a problem when we need to find all events for a given device, and for all devices in general.
Our current EventStore structure for Device is:
for events we’re thinking to use
We need to
1.get exact events by event type and deviceId( fromStream("device-id-event-eventTypeId")?),
2.get all events for exact device( fromCategory(“device-id-event**”**)?),
3.get all events of same type for all devices(Don’t know how),
4.get all events from all devices(Don’t know how).
Any better/other/best ideas?