Hi,
I’ve found some posts regarding the $stream_by_category projection but I haven’t been able to answer my question with these.
I have a bunch of streams in a category name connection. Now I want to get all the streams in that category. If I understand correct the $stream_by_category projection should create a stream named $category-connection that links all the first events in all the __connection-* __streams.
If I look in the $category-connection stream i see entries, but I have no idea how to get to the original source stream.
If I use the .Net client I both OriginalStreamId and Event.EventStreamId are “$category-connection” and I see no reference to the original **connectoin-xxxx **stream. Even if i set resolveLinkTos to true (I use ReadStreamEventsForwardAsync).
If i do a request on the HTTP api I see the following entries:
http://127.0.0.1:2113/streams/$category-connection
Accept:application/vnd.eventstore.atom+json
ES-ResolveLinkTo:true
"entries": [
{
"title": "393221@$category-connection",
"id": "http://127.0.0.1:2113/streams/%24category-connection/393221",
"updated": "2018-05-22T08:04:59.738933Z",
"author": {
"name": "EventStore"
},
"summary": "$@",
"links": [
{
"uri": "http://127.0.0.1:2113/streams/%24category-connection/393221",
"relation": "edit"
},
{
"uri": "http://127.0.0.1:2113/streams/%24category-connection/393221",
"relation": "alternate"
}
]
}
``
How do I find a reference to the connection-xxxxx stream this?
kind regards,
Arno